summaryrefslogtreecommitdiff
path: root/gflib/blit.c
diff options
context:
space:
mode:
authorMeatLoaf3 <71520913+MeatLoaf3@users.noreply.github.com>2020-10-02 11:17:11 -0400
committerGitHub <noreply@github.com>2020-10-02 11:17:11 -0400
commit5f17b07d0c7c53670ccea0c44d3c87298f4d1ee7 (patch)
tree466e1e25d136992dfe74384f61f28ad45dd9252f /gflib/blit.c
parent52598983250fd8ad7b66ff2b9d77046859f169c8 (diff)
Change toOrrX and toOrrY to u8
Diffstat (limited to 'gflib/blit.c')
-rw-r--r--gflib/blit.c6
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++)
{