VirtualBox

Changeset 35215 in vbox


Ignore:
Timestamp:
Dec 17, 2010 10:12:26 AM (14 years ago)
Author:
vboxsync
Message:

2d/mac: fix seamles with 2d

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

Legend:

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

    r35138 r35215  
    440440}
    441441
     442#ifdef VBOX_WITH_VIDEOHWACCEL
     443void UIFrameBufferQuartz2D::setView(UIMachineView *pView)
     444{
     445    clean();
     446    m_pMachineLogic = NULL;
     447    m_pDataAddress = NULL;
     448
     449    if (pView)
     450    {
     451        m_pMachineLogic = pView->machineLogic();
     452
     453        UIResizeEvent event(FramebufferPixelFormat_Opaque,
     454                        NULL, 0, 0, 640, 480);
     455        UIFrameBufferQuartz2D::resizeEvent (&event);
     456    }
     457
     458    UIFrameBuffer::setView(pView);
     459}
     460#endif
     461
    442462#endif /* defined (VBOX_GUI_USE_QUARTZ2D) */
    443463
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h

    r30108 r35215  
    5252    void resizeEvent(UIResizeEvent *pEvent);
    5353
     54#ifdef VBOX_WITH_VIDEOHWACCEL
     55    void setView(UIMachineView *pView);
     56#endif
     57
    5458private:
    5559
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