Changeset 38991 in vbox
- Timestamp:
- Oct 13, 2011 9:21:41 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r38990 r38991 549 549 QSize UIMachineView::sizeHint() const 550 550 { 551 QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height()); 552 QSize hint = fb.boundedTo(m_storedConsoleSize); 551 553 #ifdef VBOX_WITH_DEBUGGER 552 554 // TODO: Fix all DEBUGGER stuff! 553 555 /* HACK ALERT! Really ugly workaround for the resizing to 9x1 done by DevVGA if provoked before power on. */ 554 QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height()); 555 if (fb.width() < 16 || fb.height() < 16) 556 if (hint.width() < 16 || hint.height() < 16) 556 557 { 557 558 CMachine machine = uisession()->session().GetMachine(); 558 559 if ( vboxGlobal().isStartPausedEnabled() 559 560 || vboxGlobal().isDebuggerAutoShowEnabled(machine)) 560 fb = QSize(640, 480); 561 } 562 return QSize(fb.width() + frameWidth() * 2, fb.height() + frameWidth() * 2); 563 #else /* VBOX_WITH_DEBUGGER */ 564 return QSize(m_pFrameBuffer->width() + frameWidth() * 2, m_pFrameBuffer->height() + frameWidth() * 2); 565 #endif /* !VBOX_WITH_DEBUGGER */ 561 hint = QSize(640, 480); 562 } 563 #endif /* VBOX_WITH_DEBUGGER */ 564 return QSize(hint.width() + frameWidth() * 2, hint.height() + frameWidth() * 2); 566 565 } 567 566 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r38990 r38991 209 209 /* This method should not get called until we have initially set up the desktop geometry type: */ 210 210 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 211 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 212 if (desktopGeometryType() == DesktopGeo_Automatic) 211 if (desktopGeometryType() != DesktopGeo_Fixed) 213 212 m_desktopGeometry = workingArea().size(); 214 213 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r38990 r38991 132 132 case QEvent::Resize: 133 133 { 134 const QSize *pSize = &static_cast<QResizeEvent *>(pEvent)135 ->size();136 134 if (pEvent->spontaneous() && m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 137 135 QTimer::singleShot(300, this, SLOT(sltPerformGuestResize())); … … 308 306 /* This method should not get called until we have initially set up the desktop geometry type: */ 309 307 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 310 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 311 if (desktopGeometryType() == DesktopGeo_Automatic) 308 if (desktopGeometryType() != DesktopGeo_Fixed) 312 309 { 313 310 /* The area taken up by the machine window on the desktop, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r38963 r38991 372 372 /* This method should not get called until we have initially set up the desktop geometry type: */ 373 373 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 374 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 375 if (desktopGeometryType() == DesktopGeo_Automatic) 374 if (desktopGeometryType() != DesktopGeo_Fixed) 376 375 { 377 376 /* The area taken up by the machine window on the desktop, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r38990 r38991 227 227 /* This method should not get called until we have initially set up the desktop geometry type: */ 228 228 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 229 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 230 if (desktopGeometryType() == DesktopGeo_Automatic) 229 if (desktopGeometryType() != DesktopGeo_Fixed) 231 230 m_desktopGeometry = workingArea().size(); 232 231 }
Note:
See TracChangeset
for help on using the changeset viewer.