VirtualBox

Ignore:
Timestamp:
Feb 12, 2009 3:39:53 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42736
Message:

Windows guest display driver: clear VRAM when setting a new video mode (xTracker #3356).

File:
1 edited

Legend:

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

    r16615 r16710  
    293293        }
    294294
     295        /* Clear VRAM to avoid distortions during the video mode change. */
     296        RtlZeroMemory(ppdev->pjScreen,
     297                      ppdev->cyScreen * (ppdev->lDeltaScreen > 0? ppdev->lDeltaScreen: -ppdev->lDeltaScreen));
     298
    295299        //
    296300        // Initialize the head of the offscreen list to NULL.
Note: See TracChangeset for help on using the changeset viewer.

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