mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 11:19:17 +01:00
*Fix for Grayscale function to instantly draw gray. (thanks to Tantric for the info)
This commit is contained in:
parent
55ddcb5d30
commit
8c6dfb7ec6
@ -318,6 +318,10 @@ void GuiImage::SetGrayscale(void)
|
||||
*(image+offset+33) = gray;
|
||||
}
|
||||
}
|
||||
|
||||
int len = w*h*4;
|
||||
if(len%32) len += (32-len%32);
|
||||
DCFlushRange(image, len);
|
||||
}
|
||||
|
||||
|
||||
@ -341,7 +345,7 @@ void GuiImage::SetSkew(int XX1, int YY1,int XX2, int YY2,int XX3, int YY3,int XX
|
||||
}
|
||||
void GuiImage::SetSkew(int *skew)
|
||||
{
|
||||
|
||||
|
||||
xx1 = *skew++;
|
||||
yy1 = *skew++;
|
||||
xx2 = *skew++;
|
||||
@ -407,6 +411,10 @@ void GuiImage::ColorStripe(int shift)
|
||||
SetPixel(x, y, color);
|
||||
}
|
||||
}
|
||||
|
||||
int len = w*h*4;
|
||||
if(len%32) len += (32-len%32);
|
||||
DCFlushRange(image, len);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user