mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 19:29:18 +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;
|
*(image+offset+33) = gray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int len = w*h*4;
|
||||||
|
if(len%32) len += (32-len%32);
|
||||||
|
DCFlushRange(image, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -407,6 +411,10 @@ void GuiImage::ColorStripe(int shift)
|
|||||||
SetPixel(x, y, color);
|
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