cosmetic chng

This commit is contained in:
cxgeorge 2002-02-22 03:13:36 +00:00
parent e3df94a036
commit b20474cb50

View File

@ -833,15 +833,7 @@ int wglGraphicsWindow::find_pixfmtnum(bool bLookforHW) {
drvtype = Software; drvtype = Software;
else if (pfd.dwFlags & PFD_GENERIC_ACCELERATED) else if (pfd.dwFlags & PFD_GENERIC_ACCELERATED)
drvtype = MCD; drvtype = MCD;
else else drvtype = ICD;
drvtype = ICD;
// skip driver types we are not looking for
if((drvtype==Software) && bLookforHW)
continue;
if((drvtype!=Software) && !bLookforHW)
continue;
#if MY_OLD_ALGORITHM #if MY_OLD_ALGORITHM
if ((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT)) if ((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT))
@ -854,6 +846,15 @@ int wglGraphicsWindow::find_pixfmtnum(bool bLookforHW) {
} }
#endif #endif
// skip driver types we are not looking for
if(bLookforHW) {
if(drvtype==Software)
continue;
} else {
if(drvtype!=Software)
continue;
}
if ((pfd.iPixelType == PFD_TYPE_COLORINDEX) && !(mask & W_INDEX)) if ((pfd.iPixelType == PFD_TYPE_COLORINDEX) && !(mask & W_INDEX))
continue; continue;