- Timestamp:
- Aug 13, 2008 4:44:09 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34689
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r10675 r11400 952 952 953 953 /** 954 * 955 */ 956 void VBoxSDLFB::getFullScreenGeometry(uint32_t *width, uint32_t *height) 954 * Return the geometry of the host. This isn't very well tested but it seems 955 * to work at least on Linux hosts. 956 */ 957 void VBoxSDLFB::getFullscreenGeometry(uint32_t *width, uint32_t *height) 957 958 { 958 959 SDL_Rect **modes; -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r10675 r11400 125 125 int getXOffset(); 126 126 int getYOffset(); 127 void getFull ScreenGeometry(uint32_t *width, uint32_t *height);127 void getFullscreenGeometry(uint32_t *width, uint32_t *height); 128 128 uint32_t getGuestXRes() { return mGuestXRes; } 129 129 uint32_t getGuestYRes() { return mGuestYRes; } -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r10797 r11400 4903 4903 { 4904 4904 /* 4905 * The old/default way: SDL will resize the host to fit the guest 4906 * screen resolution. 4905 * The old/default way: SDL will resize the host to fit the guest screen resolution. 4907 4906 */ 4908 4907 gpFrameBuffer->setFullscreen(enable); … … 4911 4910 { 4912 4911 /* 4913 * Just switch to fullscreen and adapt the guest screen resolution4914 * t o the host window geometry.4912 * The alternate way: Switch to fullscreen with the host screen resolution and adapt 4913 * the guest screen resolution to the host window geometry. 4915 4914 */ 4916 4915 uint32_t NewWidth = 0, NewHeight = 0; 4917 if (!gpFrameBuffer->getFullscreen()) 4918 { 4916 if (enable) 4917 { 4918 /* switch to fullscreen */ 4919 4919 gmGuestNormalXRes = gpFrameBuffer->getGuestXRes(); 4920 4920 gmGuestNormalYRes = gpFrameBuffer->getGuestYRes(); 4921 gpFrameBuffer->getFull ScreenGeometry(&NewWidth, &NewHeight);4921 gpFrameBuffer->getFullscreenGeometry(&NewWidth, &NewHeight); 4922 4922 } 4923 4923 else 4924 4924 { 4925 /* switch back to saved geometry */ 4925 4926 NewWidth = gmGuestNormalXRes; 4926 4927 NewHeight = gmGuestNormalYRes;
Note:
See TracChangeset
for help on using the changeset viewer.