VirtualBox

Ignore:
Timestamp:
Aug 12, 2007 2:14:24 PM (17 years ago)
Author:
vboxsync
Message:

Set GDI version number according to the windows guest version

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h

    r4061 r4121  
    141141extern HSEMAPHORE ghsemHwBuffer;
    142142
     143/* Global DDI version of guest */
     144extern ULONG giEngineVersion;
    143145
    144146DWORD getAvailableModes(HANDLE, PVIDEO_MODE_INFORMATION *, DWORD *);
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c

    r4028 r4121  
    273273// Required hook bits will be set up according to DDI version
    274274static ULONG gflHooks = 0;
     275       ULONG giEngineVersion = DDI_DRIVER_VERSION_NT4;
    275276
    276277#define HOOKS_BMF8BPP  gflHooks
     
    306307               HOOK_COPYBITS | HOOK_STROKEPATH | HOOK_LINETO |
    307308               HOOK_PAINT | HOOK_STRETCHBLT | HOOK_SYNCHRONIZEACCESS;
     309
     310    giEngineVersion = iEngineVersion;
    308311
    309312// Fill in as much as we can.
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c

    r4061 r4121  
    488488
    489489
    490     pGdiInfo->ulVersion    = GDI_DRIVER_VERSION;
     490    if (    giEngineVersion == DDI_DRIVER_VERSION_NT4
     491        ||  giEngineVersion == DDI_DRIVER_VERSION_SP3)
     492    {
     493        DISPDBG((0,"DISP bInitPDEV pGdiInfo->ulVersion = %x\n", GDI_DRIVER_VERSION));
     494        pGdiInfo->ulVersion = GDI_DRIVER_VERSION; /* 0x4000 -> NT4 */
     495    }
     496    else
     497    {
     498        DISPDBG((0,"DISP bInitPDEV pGdiInfo->ulVersion = %x\n", 0x5000));
     499        pGdiInfo->ulVersion = 0x5000;
     500    }
     501
    491502    pGdiInfo->ulTechnology = DT_RASDISPLAY;
    492503    pGdiInfo->ulHorzSize   = pVideoModeSelected->XMillimeter;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette