- Timestamp:
- Apr 19, 2007 12:50:09 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r2077 r2221 203 203 bool ignore_mainwnd_resize : 1; 204 204 bool autoresize_guest : 1; 205 QSize autoresize_guest_hint;206 205 207 206 bool mfNumLock : 1; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r2077 r2221 823 823 /* report to the VM thread that we finished resizing */ 824 824 cconsole.GetDisplay().ResizeCompleted(); 825 826 /* reset the last auto-resize hint to confirm the guest has827 * accepted it (which may not always be the case if a828 * "natural" guest resize occasionally happened right after829 * we've sent a resize hint) */830 autoresize_guest_hint = QSize();831 825 832 826 ignore_mainwnd_resize = false; … … 2805 2799 if (autoresize_guest) 2806 2800 { 2807 if (!autoresize_guest_hint.isValid()) 2808 { 2809 /* Get the available size for the guest display. We assume here 2810 * that the centralWidget() contains this view only and gives it 2811 * all available space. */ 2812 QSize sz (mainwnd->centralWidget()->size()); 2813 sz -= QSize (frameWidth() * 2, frameWidth() * 2); 2814 LogFlowFunc (("Will suggest (%d,%d)\n", sz.width(), sz.height())); 2815 2816 autoresize_guest_hint = sz; 2817 cconsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0); 2818 } 2819 else 2820 { 2821 /* A previous resize hint has not been served yet (at least we 2822 * didn't get ResizeEvent from the guest). */ 2823 LogFlowFunc (("Guest is ignoring our last resize hint (%d,%d), " 2824 "don't suggest any more.\n", 2825 autoresize_guest_hint.width(), 2826 autoresize_guest_hint.height())); 2827 } 2828 } 2829 } 2830 2801 /* Get the available size for the guest display. 2802 * We assume here that the centralWidget() contains this view only 2803 * and gives it all available space. */ 2804 QSize sz (mainwnd->centralWidget()->size()); 2805 sz -= QSize (frameWidth() * 2, frameWidth() * 2); 2806 LogFlowFunc (("Will suggest %d,%d\n", sz.width(), sz.height())); 2807 2808 cconsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0); 2809 } 2810 } 2811
Note:
See TracChangeset
for help on using the changeset viewer.