Use a fix window size and dont resize to application size

This is for discussing general topics about how to use VirtualBox.
Post Reply
Wiggum
Posts: 4
Joined: 30. Aug 2011, 09:46
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Use a fix window size and dont resize to application size

Post by Wiggum »

Hi !

Im currently using VirtualBox with a Windows XP Guest to play some older games in a window that naturally dont support windowed mode.
All works well, but it looks like VirtualBox resizes the window size to the application resolution.

Example:
I run VirtualBox (Win XP) in windowed mode, resolution set to 1024x768 (in Win XP display settings).
I start a game that uses a fixed resolution of 800x600.
Now, the VirtualBox window resizes itselfe to 800x600 too instead of stretching the game to 1024x768.

Is there any way to prevent the automatic resize of the window ?
How can i get the any application stretched to 1024x768 instead of a automatic resize to the application resolution ?

Thanks for your help !
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Use a fix window size and dont resize to application size

Post by Sasquatch »

Set the resolution, let VB match it's size then enable scale mode. See how that goes.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Wiggum
Posts: 4
Joined: 30. Aug 2011, 09:46
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Use a fix window size and dont resize to application size

Post by Wiggum »

Thanks, i missed that feature of the new version of VirtualBox...should have read the changelog.

Anyway, can someone tell me why in "Scale Mode" everything look totally tiny or blurry ?
If i set the resolution to 1024x768 in the guest the window looks just fine. But if i now switch to "Scale Mode" everything looks totally tiny. Now i stretch the window and it starts to look blury.

Can someone explain what this "Scale Mode" actually does ?
The manual cant help here.

Thanks !
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Use a fix window size and dont resize to application size

Post by Sasquatch »

Scale mode does what it suggests. It scales the Guest display to fit the VB window. I haven't used scale mode before, because I don't need it, so I am not entirely sure what you're seeing. If the size of the Guest window doesn't change, then check the resolution setting inside the guest. It should still say 1024x768. If it doesn't, change it to that.
The reason it starts to look blurry is because it's scaling the image. Just take a small picture and change it's zoom level, you will see what I'm talking about. Lower resolutions have to be upscaled and can be blocky, or blurry. Higher resolutions have to be downscaled and will loose some pixels, so it will look jerked.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Wiggum
Posts: 4
Joined: 30. Aug 2011, 09:46
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Use a fix window size and dont resize to application size

Post by Wiggum »

Thanks again !

I just mean:
If i have VB in windowed mods and choose 1024x768 as display size of the guest it switches to a window size of 1024x768 and looks totally fine and sharp.
Now i switch to scaled mode and the window actually does not change, the resolution inside of the guest is also still the same...but now everything looks a bit blurry.
But the window size has not changed and the resolution is still the same...

Thats the point i dont understand, why it starts looking blurry although actually nothing changed, nothing should have been scaleled if i understand it all correct.
Just curious...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Use a fix window size and dont resize to application size

Post by Sasquatch »

That is curious. I just tested it with a Live CD of DSL, since that boots the fastest. First I got a smaller window and after stretching it bit by bit, it eventually looked almost identical to non-scaled. If you made the windows exactly the same size, then it will look blurry because you haven't compensated for the lack of menu and status bar.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Wiggum
Posts: 4
Joined: 30. Aug 2011, 09:46
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Use a fix window size and dont resize to application size

Post by Wiggum »

I did some more testing:
I created a white rectangle on my host that was exactly 1024x768 and tried to overlay the VirtualBox window.

Without Scale Mode the actuall Guest window without VB menu and status bar is exacly 1024x768, thats why it looks so sharp !
With Scale Mode it was not possible to stretch the Guest window to fit the white rectangle, with or without window border...thats why it always looks not as sharp as without Scale Mode i think.

RED=VB menu and status bar / window border
BLACK=my perfect 1024x768 rectangle
BLUE=The actuall Guest window
Attachments
Unbenannt.JPG
Unbenannt.JPG (73.25 KiB) Viewed 9749 times
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Use a fix window size and dont resize to application size

Post by Sasquatch »

Doesn't that just prove what I posted above? That you need to fiddle with the screen size until you're satisfied? It's either that, or live with the Guest window resizing when you play the game.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply