rakslice / macemu

Basilisk II and SheepShaver Macintosh emulators
0 stars 0 forks source link

kanjitalk755 x11 SS color channel issues #29

Closed rakslice closed 3 years ago

rakslice commented 4 years ago

When building kanjitalk755's current code a528b0a40f1039208422d35a013adb56de6689d8 with X11 graphics (--enable-sdl-video=no) while testing to work around an SDL2 issue, the resulting graphics had colour channels missing or swapped:

I wonder if this is an endianness issue. This issue didn't affect the earliest default SDL2 version I was testing (52fe2290fe5816ad67aa2796331773c2c5208ee3)

rakslice commented 4 years ago

As noted in the comments in I think in the Basilisk macosx video driver, where the buffer is offset by 1 byte to get ARGB -> RGBA for free, the guest buffer is ARGB.

The behaviour we're seeing is consistent with byte swapped ARGB (R<->G, B<->A).

Indeed, just forcing need_msb_image to true in video_x.cpp makes the problem go away.

rakslice commented 3 years ago

I recently did a test x11 build on Linux to see if I could get DGA full screen mode to work (no luck), but I noticed that I didn't get the colour channel issue. I wonder if this was just a blitting problem connected to #46