VirtualBox

Changeset 2791 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 23, 2007 9:28:38 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21401
Message:

L4: Set an initial video mode hint to resize the guest to the resolution of the L4 console

Location:
trunk/src/VBox/Frontends/VBoxBFE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r2491 r2791  
    824824}
    825825
     826void VMDisplay::SetVideoModeHint(ULONG aWidth, ULONG aHeight, ULONG aColorDepth)
     827{
     828    PPDMIVMMDEVPORT pVMMDevPort = gVMMDev->getVMMDevPort ();
     829
     830    if (pVMMDevPort)
     831        pVMMDevPort->pfnRequestDisplayChange(pVMMDevPort, aWidth, aHeight, aColorDepth);
     832}
    826833
    827834static bool vbvaPartialRead (uint8_t **ppu8, uint32_t *pcb, uint32_t cbRecord, VBVAMEMORY *pVbvaMemory)
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.h

    r2111 r2791  
    4747
    4848    void updatePointerShape(bool fVisible, bool fAlpha, uint32_t xHot, uint32_t yHot, uint32_t width, uint32_t height, void *pShape);
     49    void SetVideoModeHint(ULONG aWidth, ULONG aHeight, ULONG aColorDepth);
    4950
    5051    static const PDMDRVREG  DrvReg;
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r2667 r2791  
    698698    gConsole->updateTitlebar();
    699699
     700#ifdef __L4__
     701    /* The L4 console provides (currently) a fixed resolution. */
     702    if (vramSize * 1024 * 1024 >=   gFramebuffer->getHostXres()
     703                                  * gFramebuffer->getHostYres()
     704                                  * (gDisplay->getColorDepth() / 8))
     705        gDisplay->SetVideoModeHint(gFramebuffer->getHostXres(), gFramebuffer->getHostYres(), 0);
     706#endif
     707
    700708    /*
    701709     * Main event loop
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