Chris Robinson : winex11: Set proper pixel format flags.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 13 06:31:54 CDT 2007
Module: wine
Branch: master
Commit: 308da6313ec8dcf0352f312fc1192290cf717f04
URL: http://source.winehq.org/git/wine.git/?a=commit;h=308da6313ec8dcf0352f312fc1192290cf717f04
Author: Chris Robinson <chris.kcat at gmail.com>
Date: Sun Aug 12 13:57:02 2007 -0700
winex11: Set proper pixel format flags.
---
dlls/winex11.drv/opengl.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 521b9e7..ebed630 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1233,11 +1233,21 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
ppfd->nVersion = 1;
/* These flags are always the same... */
- ppfd->dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
+ ppfd->dwFlags = PFD_SUPPORT_OPENGL;
/* Now the flags extracted from the Visual */
wine_tsx11_lock();
+ pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_X_RENDERABLE, &value);
+ if(value)
+ ppfd->dwFlags |= PFD_SUPPORT_GDI;
+
+ pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DRAWABLE_TYPE, &value);
+ if(value & GLX_WINDOW_BIT)
+ ppfd->dwFlags |= PFD_DRAW_TO_WINDOW;
+ if(value & GLX_PIXMAP_BIT)
+ ppfd->dwFlags |= PFD_DRAW_TO_BITMAP;
+
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_CONFIG_CAVEAT, &value);
if(value == GLX_SLOW_CONFIG)
ppfd->dwFlags |= PFD_GENERIC_ACCELERATED;
More information about the wine-cvs
mailing list