Roderick Colenbrander : wgl: Select bitmap capable formats when PFD_DRAW_TO_BITMAP is requested by the caller .
Alexandre Julliard
julliard at winehq.org
Fri May 15 07:47:04 CDT 2009
Module: wine
Branch: master
Commit: 2b58d2dc067f819d73160b29634f736915150dba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b58d2dc067f819d73160b29634f736915150dba
Author: Roderick Colenbrander <thunderbird2k at gmail.com>
Date: Thu May 14 21:03:19 2009 +0200
wgl: Select bitmap capable formats when PFD_DRAW_TO_BITMAP is requested by the caller.
---
dlls/winex11.drv/opengl.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 50c2563..da04e3e 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1158,6 +1158,14 @@ int CDECL X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
continue;
}
+ /* Only use bitmap capable for formats for bitmap rendering.
+ * See get_formats for more info. */
+ if( (ppfd->dwFlags & PFD_DRAW_TO_BITMAP) != (fmt->dwFlags & PFD_DRAW_TO_BITMAP))
+ {
+ TRACE("PFD_DRAW_TO_BITMAP mismatch for iPixelFormat=%d\n", i+1);
+ continue;
+ }
+
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DOUBLEBUFFER, &value);
if (value) dwFlags |= PFD_DOUBLEBUFFER;
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_STEREO, &value);
More information about the wine-cvs
mailing list