Chris Robinson : winex11: Don'
t choose pixel formats with incorrect doublebuffer/stereo settings.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 12 07:50:40 CDT 2007
Module: wine
Branch: master
Commit: 5221921fa61fc3bcebff8435bc9e2ba6061c596f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5221921fa61fc3bcebff8435bc9e2ba6061c596f
Author: Chris Robinson <chris.kcat at gmail.com>
Date: Tue Sep 11 13:00:13 2007 -0700
winex11: Don't choose pixel formats with incorrect doublebuffer/stereo settings.
---
dlls/winex11.drv/opengl.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index f6216b6..be215ae 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1035,6 +1035,8 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
bestFormat = i;
continue;
}
+ if(bestDBuffer != -1 && (dwFlags & PFD_DOUBLEBUFFER) != bestDBuffer)
+ continue;
}
/* Stereo, see the comments above. */
@@ -1052,6 +1054,8 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
bestFormat = i;
continue;
}
+ if(bestStereo != -1 && (dwFlags & PFD_STEREO) != bestStereo)
+ continue;
}
/* Below we will do a number of checks to select the 'best' pixelformat.
More information about the wine-cvs
mailing list