diff options
author | ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> | 2020-10-12 17:09:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 17:09:38 -0500 |
commit | 8d2d34aae9767f283b3c34140920828e37540d23 (patch) | |
tree | 3c8fc07e6358c9b71254042b3ac8fee284492e5a /gflib/blit.c | |
parent | f8ce2efb557bc6c4ff7d64ab9057a5a80eb6f07e (diff) | |
parent | 46212e0d14f411e0bce35f0e968820d2b35daeb2 (diff) |
Merge pull request #5 from pret/master
Sync master
Diffstat (limited to 'gflib/blit.c')
-rw-r--r-- | gflib/blit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gflib/blit.c b/gflib/blit.c index 26a63fe9b..bdbb2e2fd 100644 --- a/gflib/blit.c +++ b/gflib/blit.c @@ -76,7 +76,7 @@ void FillBitmapRect4Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 hei s32 yEnd; s32 multiplierY; s32 loopX, loopY; - s32 toOrr1, toOrr2; + u8 toOrr1, toOrr2; xEnd = x + width; if (xEnd > surface->width) @@ -87,8 +87,8 @@ void FillBitmapRect4Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 hei yEnd = surface->height; multiplierY = (surface->width + (surface->width & 7)) >> 3; - toOrr1 = (u32)(fillValue << 0x1C) >> 0x18; - toOrr2 = (fillValue & 0xF); + toOrr1 = fillValue << 4; + toOrr2 = fillValue & 0xF; for (loopY = y; loopY < yEnd; loopY++) { |