forked from pyrite-dev/milsko
math
This commit is contained in:
parent
1907dd5d49
commit
d117241ba7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue