winex11: Check pixel format flags in X11DRV_wglChoosePixelFormatARB.
The check was dropped in e392e0ac28
,
leaving the dwFlags variable unused.
This commit is contained in:
parent
87090965ff
commit
6dd2ed2c7d
2 changed files with 3 additions and 1 deletions
|
@ -1891,7 +1891,7 @@ static void test_wglChoosePixelFormatARB(HDC hdc)
|
|||
|
||||
ok(format.dwFlags & PFD_DRAW_TO_WINDOW, "got dwFlags %#lx\n", format.dwFlags);
|
||||
ok(format.dwFlags & PFD_SUPPORT_OPENGL, "got dwFlags %#lx\n", format.dwFlags);
|
||||
todo_wine ok(format.dwFlags & PFD_SUPPORT_GDI, "got dwFlags %#lx\n", format.dwFlags);
|
||||
ok(format.dwFlags & PFD_SUPPORT_GDI, "got dwFlags %#lx\n", format.dwFlags);
|
||||
|
||||
winetest_pop_context();
|
||||
}
|
||||
|
|
|
@ -2638,6 +2638,8 @@ static BOOL X11DRV_wglChoosePixelFormatARB( HDC hdc, const int *piAttribIList, c
|
|||
|
||||
if (i == nb_pixel_formats)
|
||||
continue;
|
||||
if ((pixel_formats[i].dwFlags & dwFlags) != dwFlags)
|
||||
continue;
|
||||
|
||||
format = &formats[format_count];
|
||||
format->format = i + 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue