*Fix for Grayscale function to instantly draw gray. (thanks to Tantric for the info)

This commit is contained in:
dimok321 2009-10-17 07:24:14 +00:00
parent 55ddcb5d30
commit 8c6dfb7ec6

View File

@ -318,6 +318,10 @@ void GuiImage::SetGrayscale(void)
*(image+offset+33) = gray;
}
}
int len = w*h*4;
if(len%32) len += (32-len%32);
DCFlushRange(image, len);
}
@ -407,6 +411,10 @@ void GuiImage::ColorStripe(int shift)
SetPixel(x, y, color);
}
}
int len = w*h*4;
if(len%32) len += (32-len%32);
DCFlushRange(image, len);
}
/**