MrAlert / sdlcl

SDL Compatibility Library
GNU Lesser General Public License v2.1
50 stars 5 forks source link

OSX: bitmap issues #16

Open MaddTheSane opened 6 years ago

MaddTheSane commented 6 years ago

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
MrAlert commented 6 years ago

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.