mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-10 11:23:29 +00:00
math
This commit is contained in:
@@ -106,7 +106,7 @@ void MwDrawRectFading(MwWidget handle, MwRect* rect, MwLLColor color) {
|
|||||||
int y;
|
int y;
|
||||||
double darken = 0.;
|
double darken = 0.;
|
||||||
int ColorDiff = get_color_diff(handle);
|
int ColorDiff = get_color_diff(handle);
|
||||||
double darkenStep = (ColorDiff / 2. / 2) / rect->height;
|
double darkenStep = (ColorDiff / 4.) / rect->height;
|
||||||
unsigned long sz = 1 * rect->height * 4;
|
unsigned long sz = 1 * rect->height * 4;
|
||||||
unsigned char* data = malloc(sz);
|
unsigned char* data = malloc(sz);
|
||||||
memset(data, 0, sz);
|
memset(data, 0, sz);
|
||||||
|
|||||||
Reference in New Issue
Block a user