winemac: Fix an off-by-one error in macdrv_wglChoosePixelFormatARB().

This commit is contained in:
Ken Thomases 2013-04-24 20:18:43 -05:00 committed by Alexandre Julliard
parent dfa2ba390d
commit a34168edaa
1 changed files with 2 additions and 2 deletions

View File

@ -1917,8 +1917,8 @@ static BOOL macdrv_wglChoosePixelFormatARB(HDC hdc, const int *piAttribIList,
else if (accum_bits || accum_red_bits || accum_green_bits || accum_blue_bits || accum_alpha_bits)
continue;
piFormats[found++] = i;
TRACE("match: pixel format %d %s\n", i, debugstr_pf(&pixel_formats[i]));
piFormats[found++] = i + 1;
TRACE("match: pixel format %d %s\n", i + 1, debugstr_pf(&pixel_formats[i]));
}
cant_match: