Merge pull request #1218 from MeatLoaf3/patch-3
Change toOrrX and toOrrY to u8 in void FillBitmapRect4Bit, glib/blit.c
This commit is contained in:
commit
f0012504c6
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ void FillBitmapRect4Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 hei
|
||||||
s32 yEnd;
|
s32 yEnd;
|
||||||
s32 multiplierY;
|
s32 multiplierY;
|
||||||
s32 loopX, loopY;
|
s32 loopX, loopY;
|
||||||
s32 toOrr1, toOrr2;
|
u8 toOrr1, toOrr2;
|
||||||
|
|
||||||
xEnd = x + width;
|
xEnd = x + width;
|
||||||
if (xEnd > surface->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;
|
yEnd = surface->height;
|
||||||
|
|
||||||
multiplierY = (surface->width + (surface->width & 7)) >> 3;
|
multiplierY = (surface->width + (surface->width & 7)) >> 3;
|
||||||
toOrr1 = (u32)(fillValue << 0x1C) >> 0x18;
|
toOrr1 = fillValue << 4;
|
||||||
toOrr2 = (fillValue & 0xF);
|
toOrr2 = fillValue & 0xF;
|
||||||
|
|
||||||
for (loopY = y; loopY < yEnd; loopY++)
|
for (loopY = y; loopY < yEnd; loopY++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue