Fix launcher background stuffing up when either fully black or white (Thanks DuckTummy)

This commit is contained in:
UnknownShadow200 2019-10-12 08:06:04 +11:00
parent db33497d03
commit bbd0af1912

View File

@ -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) {