hex007 / freej2me

A free J2ME emulator with libretro, awt and sdl2 frontends.
Other
487 stars 75 forks source link

Fixed drawing of 1 bit image #71

Closed strump closed 4 years ago

strump commented 4 years ago

This pull-request fixes issue #70

Before SplinterCell3410-bug

After SplinterCell3410-expected-result

I took this code from microemu implementation of DirectGraphics interface.

Maybe case of TYPE_BYTE_1_GRAY in drawPixels(...) method also should be fixed. But I have no game which uses this format.

strump commented 4 years ago

In commit #5e66c2c4 I've also fixed rendering of a sprite if it's not fully placed on a screen.

Before SplinterrCell3410-partial-sprite-bug

After SplinterrCell3410-partial-sprite-fixed

recompileorg commented 4 years ago

Nice work.