WINE Apps in fullscreen
I use xrandr
to scale the game.
After the game is up I have a custom key linked to this command;
xrandr --output VGA-0 --mode 1360x768 --scale 0.59x0.78 --panning 800x600
When you need to return to the normal size screen;
xrandr --output VGA-0 --mode 1360x768 --scale 1x1 --panning 1360x768
VGA-0
is the name of my display, use xrandr
from terminal to find the name of your display. Old games are a real challenge when they never made the game window to resize.
Related videos on Youtube
Bruno Demantova
Updated on September 18, 2022Comments
-
Bruno Demantova over 1 year
I recently discovered that you can save the console output from a C++ program to a text file using Visual Studio (adding a "> output.txt" in Command Arguments on your project properties).
The problem is that I want the output to show both inside the output file I create and the command console, for easier debugging (once you save the output to a file, it doesn't show anymore on the console). Is there any option to enable both of these features in Visual Studio, or something similar?
-
Tim almost 10 yearsIf you set wine to "Emulate a virtual desktop, in the graphics tab, then it might be able to achieve a higher res.
-
Horațiu Mlendea almost 10 yearsAlready tried it and I still have the same problem. I can confirm that the app did indeed launch in a virtual desktop since I was able to see the "virtual desktop" for a fraction of a second after closing the game.
-
Tim almost 10 yearsWhat if you open another app first? What is the desktop set to?
-
Horațiu Mlendea almost 10 yearsOk so I started a windowed app in an 1024x768 desktop (it was windowed). All went fine so far but when I started Starcraft the desktop went to 800x600 (Starcraft's resolution) and stayed that way until I closed Starcraft and then it went back to normal and the first app was still there...
-
Horațiu Mlendea almost 10 yearsYes, everyone says it works perfectly but I also have this problem in other games too not just Starcraft... After searching a little more on Google I found out something about resolutions not being set correctly in xorg.conf but I don't know anything about this file or how to fix it... :-s
-
Horațiu Mlendea almost 10 yearsOk I think I found the problem... I just switched to the integrated Intel Card from nVidia X Server Settings using PRIME Profiles and it works fine using this card... when I switch back to nVidia I get the issue back as well... Also, while I'm on nVidia I can't use xrandr to change the resolution through the terminal, but on Intel it works... however setting it manually from System Settings/Display works on both
-
Jesper Juhl almost 6 yearsTake a look at what
tee
does. -
Retired Ninja almost 6 yearsYou best bet is to write a small logger that writes to both
cout
and the file you want to save the output in. -
Bruno Demantova almost 6 yearsSince I already have a pretty big code I was looking forward to not having to alter it further, that's why I'm looking at the moment for VS alternatives for this.
-
Stephan Lechner almost 6 yearsis Boost::IOStreams an option? you could redirect
cout
then to a custom stream writer (i.e. sink), which writes to both a file and the console. -
Sam Varshavchik almost 6 yearsIn the time it'll probably take you to figure out how to do this on Microsoft Windows, you'll probably be able to learn Linux, where this problem was solved about 30 years ago.
-
-
Admin almost 6 yearsNot using VS, which is what the OP was asking about.
-
eneski almost 6 yearsI updated my answer, please take a look again @Bruno Demantova, thanks for your warning Neil Bluetterworth
-
Retired Ninja almost 6 yearsThis does not work on Windows. You end up with no output to the console as it has been redirected to a file named
type
in the current working directory. Your new linux instructions are suspect too as normally you would use|
not>
to pipe the output to tee. -
eneski almost 6 yearsYes, you are right. I updated my answer but not sure if windows version works because I am not able to test it on windows currently. Thanks @RetiredNinja
-
Bruno Demantova almost 6 yearsUnfortunately the "> output.txt && type output.txt" line didn't work on Windows. I got the same result as before (just as @RetiredNinja said).
-
πάντα ῥεῖ almost 6 yearsPowerShell supports tee BTW.