- Timestamp:
- Jun 28, 2013 1:08:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r46716 r46864 22 22 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 23 23 24 /* Local includes*/24 /* GUI includes: */ 25 25 # include "UIMachineView.h" 26 26 # include "UIFrameBuffer.h" … … 28 28 # include "VBoxGlobal.h" 29 29 30 /* Other VBox includes: */ 30 31 # include <VBox/VBoxVideo3D.h> 31 32 … … 168 169 BOOL *pbFinished) 169 170 { 171 LogRelFlow(("UIFrameBuffer::RequestResize: " 172 "Screen=%lu, Format=%lu, " 173 "BitsPerPixel=%lu, BytesPerLine=%lu, " 174 "Size=%lux%lu\n", 175 (unsigned long)uScreenId, (unsigned long)uPixelFormat, 176 (unsigned long)uBitsPerPixel, (unsigned long)uBytesPerLine, 177 (unsigned long)uWidth, (unsigned long)uHeight)); 178 170 179 /* Make sure frame-buffer is not yet scheduled for removal: */ 171 180 if (m_fIsScheduledToDelete) … … 173 182 174 183 /* Currently screen ID is not used: */ 175 NOREF(uScreenId);184 Q_UNUSED(uScreenId); 176 185 177 186 /* Mark request as not-yet-finished: */ … … 200 209 STDMETHODIMP UIFrameBuffer::NotifyUpdate(ULONG uX, ULONG uY, ULONG uWidth, ULONG uHeight) 201 210 { 211 LogRelFlow(("UIFrameBuffer::NotifyUpdate: Origin=%lux%lu, Size=%lux%lu\n", 212 (unsigned long)uX, (unsigned long)uY, 213 (unsigned long)uWidth, (unsigned long)uHeight)); 214 202 215 /* Make sure frame-buffer is not yet scheduled for removal: */ 203 216 if (m_fIsScheduledToDelete) … … 221 234 STDMETHODIMP UIFrameBuffer::VideoModeSupported(ULONG uWidth, ULONG uHeight, ULONG uBPP, BOOL *pbSupported) 222 235 { 223 NOREF(uBPP); 224 LogFlowThisFunc(("width=%lu, height=%lu, BPP=%lu\n", 225 (unsigned long)uWidth, (unsigned long)uHeight, (unsigned long)uBPP)); 236 LogRelFlow(("UIFrameBuffer::VideoModeSupported: Mode: BPP=%lu, Size=%lux%lu\n", 237 (unsigned long)uBPP, (unsigned long)uWidth, (unsigned long)uHeight)); 238 239 /* Make sure frame-buffer is not yet scheduled for removal: */ 240 if (m_fIsScheduledToDelete) 241 return E_FAIL; 226 242 227 243 if (!pbSupported) … … 229 245 *pbSupported = TRUE; 230 246 231 lock(); /* See comment in setView(). */ 232 QSize screen; 233 if (m_pMachineView) 234 screen = m_pMachineView->maxGuestSize(); 247 /* Currently BPP is not used: */ 248 Q_UNUSED(uBPP); 249 250 /* See comment in setView(): */ 251 lock(); 252 253 QSize screenSize; 254 if (m_pMachineView) 255 screenSize = m_pMachineView->maxGuestSize(); 256 257 /* Unlock thread finally: */ 235 258 unlock(); 236 if ( (screen.width() != 0) 237 && (uWidth > (ULONG)screen.width()) 259 260 if ( (screenSize.width() != 0) 261 && (uWidth > (ULONG)screenSize.width()) 238 262 && (uWidth > (ULONG)width())) 239 263 *pbSupported = FALSE; 240 264 241 if ( (screen .height() != 0)242 && (uHeight > (ULONG)screen .height())265 if ( (screenSize.height() != 0) 266 && (uHeight > (ULONG)screenSize.height()) 243 267 && (uHeight > (ULONG)height())) 244 268 *pbSupported = FALSE; 245 269 246 LogFlowThisFunc(("screenW=%lu, screenH=%lu -> aSupported=%s\n", 247 screen.width(), screen.height(), *pbSupported ? "TRUE" : "FALSE")); 248 270 LogRelFlow(("UIFrameBuffer::VideoModeSupported: Verdict: Supported=%s\n", 271 *pbSupported ? "TRUE" : "FALSE")); 272 273 /* Confirm VideoModeSupported: */ 249 274 return S_OK; 250 275 } … … 257 282 return E_POINTER; 258 283 259 NOREF(uCount);260 NOREF(puCountCopied);284 Q_UNUSED(uCount); 285 Q_UNUSED(puCountCopied); 261 286 262 287 return S_OK; … … 265 290 STDMETHODIMP UIFrameBuffer::SetVisibleRegion(BYTE *pRectangles, ULONG uCount) 266 291 { 292 LogRelFlow(("UIFrameBuffer::SetVisibleRegion: Rectangle count=%lu\n", (unsigned long)uCount)); 293 267 294 /* Make sure frame-buffer is not yet scheduled for removal: */ 268 295 if (m_fIsScheduledToDelete) … … 334 361 AssertBreakpoint(); 335 362 } 336 #endif 363 #endif /* VBOX_WITH_VIDEOHWACCEL */ 337 364 338 365 void UIFrameBuffer::setView(UIMachineView * pView)
Note:
See TracChangeset
for help on using the changeset viewer.