Changeset 7453 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 14, 2008 9:53:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r7435 r7453 1087 1087 if (mMainWnd->isTrueFullscreen() || mMainWnd->isTrueSeamless()) 1088 1088 updateGeometry(); 1089 1090 /* Remember the new size for sending an initial size hint 1091 on next power up. */ 1092 if (mConsole.GetGuest().GetSupportsGraphics()) 1093 mLastSizeHint = QSize(re->width(), re->height()); 1089 1094 1090 1095 /* make sure that all posted signals are processed */ … … 3579 3584 3580 3585 mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0); 3581 mLastSizeHint = sz;3582 3586 } 3583 3587 } … … 3600 3604 if (!ok || w > screen.width() || h > screen.height()) 3601 3605 { 3602 enum { NUM_RES = 4 }; 3603 const int sizeList[NUM_RES][2] = 3606 static const int sizeList[][2] = 3604 3607 { 3605 3608 { 640, 480 }, … … 3612 3615 /* Find a size that is smaller than three quarters of the reported 3613 3616 screen geometry. */ 3614 while ( (i + 1 < NUM_RES)3615 && (sizeList[i + 1][0] < screen.width() * 3 / 4)3616 && (sizeList[i + 1][1] < screen.height() * 3 / 4))3617 while ( i + 1 < RT_ELEMENTS (sizeList) 3618 && sizeList[i + 1][0] < screen.width() * 3 / 4 3619 && sizeList[i + 1][1] < screen.height() * 3 / 4) 3617 3620 ++i; 3618 3621 w = sizeList[i][0];
Note:
See TracChangeset
for help on using the changeset viewer.