Changeset 735 for trunk/src


Ignore:
Timestamp:
May 13, 2010, 6:57:19 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: If neither QT_PM_DIVE nor QT_PM_NO_DIVE is set, the default is NO_DIVE if the Panorama video driver is detected and DIVE=FBSWM otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/painting/qwindowsurface_pm.cpp

    r718 r735  
    727727                diveHideMouse = true;
    728728            } else {
    729                 // disable DIVE by default due to bugs in the Panorama driver
    730                 diveDllOK = false;
     729                // dedect the Panorama video driver presense
     730                bool isPanorama = qgetenv("C1") == "VBE2GRAD" &&
     731                                  qgetenv("GREEXT") == "PANOGREX";
     732                if (isPanorama) {
     733                    // if Panorama is detected, disable DIVE by default due to
     734                    // bugs in the DIVE implementation
     735                    diveDllOK = false;
     736                } else {
     737                    // FBSWM is a safe default for SNAP and probably other drivers
     738                    diveUseFB = true;
     739                    diveHideMouse = true;
     740                }
    731741            }
    732742        }
Note: See TracChangeset for help on using the changeset viewer.