b=484864; followup, correctly handle multiple-of-4 surfaces; r=math

This commit is contained in:
Vladimir Vukicevic 2009-04-14 17:59:12 -07:00
Родитель d8e685f89b
Коммит 23b0f9cb4f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -6100,7 +6100,7 @@ PRBool nsWindow::OnPaint(HDC aDC)
// However, since we're dealing with little-endian ints, this is actually:
// xRGB xrgb xRGB xrgb -> bRGB GBrg rgbR
int width_left = surfaceSize.width;
while (width_left > 4) {
while (width_left >= 4) {
unsigned int a = *src++;
unsigned int b = *src++;
unsigned int c = *src++;