mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Fix launcher background stuffing up when either fully black or white (Thanks DuckTummy)
This commit is contained in:
parent
db33497d03
commit
bbd0af1912
@ -168,7 +168,7 @@ cc_bool Drawer2D_Clamp(Bitmap* bmp, int* x, int* y, int* width, int* height) {
|
||||
*height = min(*y + *height, bmp->Height) - *y;
|
||||
return *width > 0 && *height > 0;
|
||||
}
|
||||
#define Drawer2D_ClampPixel(p) (p < 0 ? 0 : (p > 255 ? 255 : p))
|
||||
#define Drawer2D_ClampPixel(p) p = (p < 0 ? 0 : (p > 255 ? 255 : p))
|
||||
|
||||
void Gradient_Noise(Bitmap* bmp, BitmapCol col, int variation,
|
||||
int x, int y, int width, int height) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user