sdlcl icon indicating copy to clipboard operation
sdlcl copied to clipboard

OSX: bitmap issues

Open MaddTheSane opened this issue 7 years ago • 1 comments

There seems to be a few issues with bitmap graphics on Mac OS X. The testbitmap application bundled with SDL 1.2:
SDL 1.2: screen shot 2018-03-19 at 2 40 56 pm

SDLCL: screen shot 2018-03-19 at 2 40 59 pm

The testalpha application bundled with SDL 1.2: SDL 1.2: screen shot 2018-03-19 at 2 47 46 pm SDLCL: screen shot 2018-03-19 at 2 47 52 pm

MaddTheSane avatar Mar 19 '18 20:03 MaddTheSane

These bugs are not OS X specific. They also happen on Linux. Disabling the alpha channel on the display surface (e73f5a103f35f407dc7bc538131a44c41933b888) fixes the testalpha bug. The testbitmap bug is a weird one though. In my testing, both the simulated SDL 1.2 surface, and the real SDL 2.0 surface have a pitch of 0. It's looking likely that it is a bug in SDL 2.0, but looking at its code, I don't see how it's happening.

MrAlert avatar Mar 21 '18 02:03 MrAlert