- Timestamp:
- Feb 12, 2015 1:11:19 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98229
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r54104 r54178 80 80 m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0; 81 81 82 /* Assign display: */ 83 m_display = m_pMachineView->uisession()->display(); 84 82 85 /* Initialize critical-section: */ 83 86 int rc = RTCritSectInit(&m_critSect); … … 244 247 CDisplaySourceBitmap sourceBitmap; 245 248 if (!vboxGlobal().isSeparateProcess()) 246 m_pMachineView->session().GetConsole().GetDisplay().QuerySourceBitmap(uScreenId, sourceBitmap);249 display().QuerySourceBitmap(uScreenId, sourceBitmap); 247 250 248 251 /* Lock access to frame-buffer: */ … … 728 731 LONG yOrigin = 0; 729 732 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 730 CDisplay display = m_pMachineView->uisession()->display(); 731 display.GetScreenResolution(m_pMachineView->screenId(), 732 ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus); 733 display().GetScreenResolution(m_pMachineView->screenId(), 734 ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus); 733 735 734 736 /* Remind user if necessary, ignore text and VGA modes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r54104 r54178 28 28 29 29 /* COM includes: */ 30 #include "CDisplay.h" 30 31 #include "CDisplaySourceBitmap.h" 31 32 … … 67 68 * @param pMachineView defines machine-view this frame-buffer is bounded to. */ 68 69 HRESULT init(UIMachineView *pMachineView); 70 71 /** Returns the copy of the IDisplay wrapper. */ 72 CDisplay display() const { return m_display; } 69 73 70 74 /** Assigns machine-view frame-buffer will be bounded to. … … 274 278 int m_iHeight; 275 279 280 /** Holds the copy of the IDisplay wrapper. */ 281 CDisplay m_display; 276 282 /** Source bitmap from IDisplay. */ 277 283 CDisplaySourceBitmap m_sourceBitmap;
Note:
See TracChangeset
for help on using the changeset viewer.