Changeset 41404 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 22, 2012 4:41:38 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r41107 r41404 791 791 } 792 792 793 void UIMachineView::scrollContentsBy(int dx, int dy) 794 { 793 795 #ifdef VBOX_WITH_VIDEOHWACCEL 794 void UIMachineView::scrollContentsBy(int dx, int dy)795 {796 796 if (m_pFrameBuffer) 797 797 { 798 798 m_pFrameBuffer->viewportScrolled(dx, dy); 799 799 } 800 #endif /* VBOX_WITH_VIDEOHWACCEL */ 800 801 QAbstractScrollArea::scrollContentsBy(dx, dy); 801 } 802 #endif /* VBOX_WITH_VIDEOHWACCEL */ 802 803 session().GetConsole().GetDisplay().ViewportChanged(screenId(), 804 contentsX(), 805 contentsY(), 806 contentsWidth(), 807 contentsHeight()); 808 } 809 803 810 804 811 #ifdef Q_WS_MAC … … 1003 1010 bool UIMachineView::eventFilter(QObject *pWatched, QEvent *pEvent) 1004 1011 { 1005 #ifdef VBOX_WITH_VIDEOHWACCEL1006 1012 if (pWatched == viewport()) 1007 1013 { … … 1010 1016 case QEvent::Resize: 1011 1017 { 1018 QResizeEvent* pResizeEvent = static_cast<QResizeEvent*>(pEvent); 1019 #ifdef VBOX_WITH_VIDEOHWACCEL 1012 1020 if (m_pFrameBuffer) 1013 m_pFrameBuffer->viewportResized(static_cast<QResizeEvent*>(pEvent)); 1021 m_pFrameBuffer->viewportResized(pResizeEvent); 1022 #endif /* VBOX_WITH_VIDEOHWACCEL */ 1023 session().GetConsole().GetDisplay().ViewportChanged(screenId(), 1024 contentsX(), 1025 contentsY(), 1026 contentsWidth(), 1027 contentsHeight()); 1014 1028 break; 1015 1029 } … … 1018 1032 } 1019 1033 } 1020 #endif /* VBOX_WITH_VIDEOHWACCEL */1021 1034 if (pWatched == machineWindow()) 1022 1035 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r41107 r41404 165 165 void scrollBy(int dx, int dy); 166 166 static void dimImage(QImage &img); 167 #ifdef VBOX_WITH_VIDEOHWACCEL168 167 void scrollContentsBy(int dx, int dy); 169 #endif /* VBOX_WITH_VIDEOHWACCEL */170 168 #ifdef Q_WS_MAC 171 169 void updateDockIcon();
Note:
See TracChangeset
for help on using the changeset viewer.