зеркало из https://github.com/mozilla/pjs.git
b=484864; followup, correctly handle multiple-of-4 surfaces; r=math
This commit is contained in:
Родитель
d8e685f89b
Коммит
23b0f9cb4f
|
@ -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++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче