VirtualBox

Changeset 18553 in vbox


Ignore:
Timestamp:
Mar 30, 2009 3:06:49 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: don't touch qt from non gui threads, fix for #3782

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r16469 r18553  
    6060                     ulong aWidth, ulong aHeight) :
    6161        QEvent ((QEvent::Type) VBoxDefs::ResizeEventType),
    62             mPixelFormat (aPixelFormat), mVRAM (aVRAM), mBitsPerPixel (aBitsPerPixel),
     62        mPixelFormat (aPixelFormat), mVRAM (aVRAM), mBitsPerPixel (aBitsPerPixel),
    6363        mBytesPerLine (aBytesPerLine), mWidth (aWidth), mHeight (aHeight) {}
    6464    ulong pixelFormat() { return mPixelFormat; }
     
    257257    int mWdt;
    258258    int mHgt;
     259    uint64_t mWinId;
    259260
    260261#if defined (Q_OS_WIN32)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp

    r16269 r18553  
    5252{
    5353    AssertMsg (mView, ("VBoxConsoleView must not be null\n"));
     54    mWinId = (mView && mView->viewport()) ? (ULONG64) mView->viewport()->winId() : 0;
    5455}
    5556
     
    142143    if (!winId)
    143144        return E_POINTER;
    144     *winId = (mView && mView->viewport()) ? (ULONG64) mView->viewport()->winId() : 0;
     145    *winId = mWinId;
    145146    return S_OK;
    146147}
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