1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-29 01:42:32 +01:00

Fix for non-gcc compilers

This commit is contained in:
dan
2000-03-30 04:52:43 +00:00
parent b40d52edd6
commit 5730c765c3
3 changed files with 17 additions and 9 deletions

View File

@@ -172,14 +172,13 @@ renderVGradient(unsigned width, unsigned height, int r0, int g0, int b0,
unsigned long r, g, b, dr, dg, db;
RImage *image;
unsigned char *ptr;
unsigned int *iptr;
unsigned char rr, gg, bb;
image = RCreateImage(width, height, False);
if (!image) {
return NULL;
}
iptr = (unsigned int*)ptr = image->data;
ptr = image->data;
r = r0<<16;
g = g0<<16;