Changeset 787


Ignore:
Timestamp:
Oct 7, 2010, 3:55:01 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: DIVE: Better detection of the Panorama video driver that detects the driver presence im memory instead of what is loaded on next reboot. This also solves redraw problems in cases where Panorama is installed together with some other video extension so that the old method could not detect it and disable DIVE.

File:
1 edited

Legend:

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

    r786 r787  
    918918                diveHideMouse = true;
    919919            } else {
    920                 // dedect the Panorama video driver presense
    921                 bool isPanorama = qgetenv("C1") == "VBE2GRAD" &&
    922                                   qgetenv("GREEXT") == "PANOGREX";
     920                // dedect the Panorama video driver presence
     921                HMODULE hmod;
     922                bool isPanorama =
     923                    DosQueryModuleHandle("VBE2GRAD", &hmod) == NO_ERROR &&
     924                    DosQueryModuleHandle("PANOGREX", &hmod) == NO_ERROR;
    923925                if (isPanorama) {
    924926                    // if Panorama is detected, disable DIVE by default due to
Note: See TracChangeset for help on using the changeset viewer.