winex11: Don't choose pixel formats with incorrect doublebuffer/stereo settings.

This commit is contained in:
Chris Robinson 2007-09-11 13:00:13 -07:00 committed by Alexandre Julliard
parent 160258b637
commit 5221921fa6
1 changed files with 4 additions and 0 deletions

View File

@ -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.