VirtualBox

Ignore:
Timestamp:
Oct 14, 2009 3:06:33 PM (15 years ago)
Author:
vboxsync
Message:

2dvideo: bugfixing for overlay (widget) move/resize

File:
1 edited

Legend:

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

    r23746 r23766  
    373373    bool performDisplay(VBoxVHWASurfaceBase *pPrimary, bool bForce);
    374374
    375     void setRects(VBoxVHWASurfaceBase *pPrimary, const QRect & aTargRect, const QRect & aSrcRect, const QRect & aVisibleTargRect, bool bForceReinit);
    376     void setTargRectPosition(VBoxVHWASurfaceBase *pPrimary, const QPoint & aPoint, const QRect & aVisibleTargRect);
    377     void updateVisibleTargRect(VBoxVHWASurfaceBase *pPrimary, const QRect & aVisibleTargRect);
     375    void setRects (const QRect & aTargRect, const QRect & aSrcRect);
     376    void setTargRectPosition (const QPoint & aPoint);
     377    void setVisibilityReinitFlag() { mNeedVisibilityReinit = true; }
     378    void updateVisibility (VBoxVHWASurfaceBase *pPrimary, const QRect & aVisibleTargRect, bool bForce);
    378379
    379380    static ulong calcBytesPerPixel(GLenum format, GLenum type);
     
    514515    const VBoxVHWADirtyRect & getDirtyRect() { return mUpdateMem2TexRect; }
    515516private:
    516     void doSetRectValuesInternal(const QRect & aTargRect, const QRect & aSrcRect, const QRect & aVisTargRect);
     517    void setRectValues (const QRect & aTargRect, const QRect & aSrcRect);
     518    void setVisibleRectValues (const QRect & aVisTargRect);
    517519
    518520    void setComplexList(VBoxVHWASurfList *aComplexList) { mComplexList = aComplexList; }
     
    542544
    543545    bool mVisibleDisplayInitialized;
     546    bool mNeedVisibilityReinit;
    544547
    545548    uchar * mAddress;
     
    10201023            mpfnOp = NULL;
    10211024        }
     1025        VBOXQGLLOG(("paintGL\n"));
    10221026//        else
    10231027//        {
     
    11881192            mNeedOverlayRepaint = false;
    11891193            performDisplayOverlay();
     1194        }
     1195        if(mNeedSetVisible)
     1196        {
     1197            mNeedSetVisible = false;
     1198            mpOverlayWidget->setVisible(true);
    11901199        }
    11911200    }
     
    12481257    bool mProcessingCommands;
    12491258    bool mNeedOverlayRepaint;
     1259    bool mNeedSetVisible;
    12501260    QRect mOverlayViewport;
    12511261    VBoxVHWADirtyRect mMainDirtyRect;
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