VirtualBox

Ignore:
Timestamp:
Nov 28, 2009 2:39:15 PM (15 years ago)
Author:
vboxsync
Message:

Windows guest graphics driver/HGSMI: check that the screen origin has changed before initiating a resize.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c

    r25052 r25071  
    11451145    {
    11461146        case DN_DEVICE_ORIGIN:
     1147#ifndef VBOX_WITH_HGSMI
    11471148            ppdev->ptlDevOrg = *(PPOINTL)pvData;
    1148 #ifndef VBOX_WITH_HGSMI
    11491149            DISPDBG((3, "DN_DEVICE_ORIGIN: %d, %d (PSO = %p, pInfo = %p)\n", ppdev->ptlDevOrg.x,
    11501150                     ppdev->ptlDevOrg.y, pso, ppdev->pInfo));
     
    11551155                VBoxProcessDisplayInfo(ppdev);
    11561156            }
     1157            break;
    11571158#else
    1158             DISPDBG((3, "DN_DEVICE_ORIGIN: %d, %d (PSO = %p)\n", ppdev->ptlDevOrg.x,
    1159                      ppdev->ptlDevOrg.y, pso));
    1160             VBoxProcessDisplayInfo(ppdev);
     1159        {
     1160            POINTL ptlDevOrg = *(PPOINTL)pvData;
     1161            DISPDBG((3, "DN_DEVICE_ORIGIN: current @%d,%d, new @%d,%d, (PSO = %p)\n", ppdev->ptlDevOrg.x,
     1162                     ppdev->ptlDevOrg.y, ptlDevOrg.x, ptlDevOrg.y, pso));
     1163            if (ppdev->ptlDevOrg.x != ptlDevOrg.x || ppdev->ptlDevOrg.y != ptlDevOrg.y)
     1164            {
     1165                ppdev->ptlDevOrg = ptlDevOrg;
     1166                VBoxProcessDisplayInfo(ppdev);
     1167            }
     1168         } break;
    11611169#endif /* VBOX_WITH_HGSMI */
    1162             break;
    11631170        case DN_DRAWING_BEGIN:
    11641171            DISPDBG((3, "DN_DRAWING_BEGIN (PSO = %p)\n", pso));
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