VirtualBox

Changeset 32981 in vbox for trunk/src


Ignore:
Timestamp:
Oct 7, 2010 2:19:22 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4: correctly initialize the QImage to support virtual modes

File:
1 edited

Legend:

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

    r32150 r32981  
    166166        if (!bFallback)
    167167        {
    168             ulong virtWdt = bitsPerLine / pEvent->bitsPerPixel();
    169             m_img = QImage ((uchar *) pEvent->VRAM(), virtWdt, m_height, format);
     168            m_img = QImage ((uchar *) pEvent->VRAM(), m_width, m_height, bitsPerLine / 8, format);
    170169            m_uPixelFormat = FramebufferPixelFormat_FOURCC_RGB;
    171170            m_bUsesGuestVRAM = true;
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