VirtualBox

Ignore:
Timestamp:
Dec 9, 2010 12:06:51 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: handle framebuffers with virtual width less than real width

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQImage.cpp

    r34740 r34850  
    166166        if (!bFallback)
    167167        {
     168            Assert (bitsPerLine / pEvent->bitsPerPixel() >= m_width);
     169            bFallback = RT_BOOL (bitsPerLine / pEvent->bitsPerPixel() < m_width);
     170        }
     171        if (!bFallback)
     172        {
    168173            m_img = QImage ((uchar *) pEvent->VRAM(), m_width, m_height, bitsPerLine / 8, format);
    169174            m_uPixelFormat = FramebufferPixelFormat_FOURCC_RGB;
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