Discussion:
[Wine] Since wine 1.9.11 - How to get rid of the new bar below the game window?
Hartmut Figge
2016-06-23 15:07:45 UTC
Permalink
Greetings,

beginning with wine 1.9.11 I have a new bar below the game window which
effectively steals part of the usable area. Here is a screenshot of
Gothic I.

Loading Image... (931 KB)

No desktop environment here, only IceWM. My games are started with shell
scripts which cd to the directory of the game and then run 'wine
program'. In the case of Gothic I

---------------
***@i5-64 ~ $ cat `which g1`
#!/bin/bash
cd ~/'.wine/drive_c/Program Files (x86)/JoWooD/Gothic/system/'
wine gothic
---------------

There has to be a parameter when calling a program which disables this
new bar. Or at least a simple way to get rid of it after the game is
started. Perhaps it is simple for someone familiar with Windows.

What to do? :)

Hartmut
pelzflorian (Florian Pelz)
2016-06-23 20:50:48 UTC
Permalink
Hello,

Gothic has problems with the titlebar for a long time. This may or may
not be related.

Bisecting the git versions reveals that the change has been introduced
by this commit:
45b2b1f09b30b01726685983dd8e3edb42c1fd1c is the first bad commit
commit 45b2b1f09b30b01726685983dd8e3edb42c1fd1c
Author: Alexandre Julliard <***@winehq.org>
Date: Fri May 27 21:08:44 2016 +0900

explorer: Add a helper function to resize and display the tray window.

Signed-off-by: Alexandre Julliard <***@winehq.org>

This probably should be reported as a bug. Will you do it?


Other than that, you can set the right resolution in Gothic.ini to avoid
this bug. However, Gothic may automatically reset your resolution
settings. I therefore suggest you adapt your script to make sure your
resolution settings are applied each time you run Gothic:

#!/bin/bash
cd ~/'.wine/drive_c/Program Files (x86)/JoWooD/Gothic/system/'
cat Gothic.ini | sed
's/zVidResFullscreenX=640/zVidResFullscreenX=1024/;s/zVidResFullscreenY=480/zVidResFullscreenY=768/;s/zVidResFullscreenBPP=16/zVidResFullscreenBPP=32/'
GOTHIC.INI2
mv GOTHIC.INI2 Gothic.ini
wine gothic

The entire sed command should be on one line. Please use the resolution
appropriate for your display instead of 1024×768. Make sure it is the
same resolution you use for your virtual desktop in winecfg. You may
need to start and quit Gothic once before the new settings take effect.
It works for me at least.

Regards,
Florian Pelz
pelzflorian (Florian Pelz)
2016-06-23 21:00:52 UTC
Permalink
Post by Hartmut Figge
#!/bin/bash
cd ~/'.wine/drive_c/Program Files (x86)/JoWooD/Gothic/system/'
cat Gothic.ini | sed
's/zVidResFullscreenX=640/zVidResFullscreenX=1024/;s/zVidResFullscreenY=480/zVidResFullscreenY=768/;s/zVidResFullscreenBPP=16/zVidResFullscreenBPP=32/'
GOTHIC.INI2
mv GOTHIC.INI2 Gothic.ini
wine gothic
Even better script with sed -i, still one line:

#!/bin/bash
cd ~/'.wine/drive_c/Program Files (x86)/JoWooD/Gothic/system/'
sed -i
's/zVidResFullscreenX=640/zVidResFullscreenX=1024/;s/zVidResFullscreenY=480/zVidResFullscreenY=768/;s/zVidResFullscreenBPP=16/zVidResFullscreenBPP=32/'
Gothic.ini
wine gothic
Hartmut Figge
2016-06-23 21:35:16 UTC
Permalink
Post by pelzflorian (Florian Pelz)
Gothic has problems with the titlebar for a long time. This may or may
not be related.
Gothic was only an example. Almost all of my games now show this
behaviour. Might & Magic 6 to 9, Morrowind, Oblivion. There is one
exception though, Wizardry 8 is not affected.
Post by pelzflorian (Florian Pelz)
Bisecting the git versions reveals that the change has been introduced
45b2b1f09b30b01726685983dd8e3edb42c1fd1c is the first bad commit
commit 45b2b1f09b30b01726685983dd8e3edb42c1fd1c
Date: Fri May 27 21:08:44 2016 +0900
explorer: Add a helper function to resize and display the tray window.
Thanks for that. For SeaMonkey I do sometimes the same in Mercurial.
Post by pelzflorian (Florian Pelz)
This probably should be reported as a bug. Will you do it?
But I'm not sure if this is a bug or done on purpose. ;) I am used to
strange decisions for SeaMonkey.

Hartmut
Alexandre Julliard
2016-06-24 02:55:03 UTC
Permalink
Post by pelzflorian (Florian Pelz)
Hello,
Gothic has problems with the titlebar for a long time. This may or may
not be related.
Bisecting the git versions reveals that the change has been introduced
45b2b1f09b30b01726685983dd8e3edb42c1fd1c is the first bad commit
commit 45b2b1f09b30b01726685983dd8e3edb42c1fd1c
Date: Fri May 27 21:08:44 2016 +0900
explorer: Add a helper function to resize and display the tray window.
This probably should be reported as a bug. Will you do it?
This should already be fixed in git. The fix will be included in 1.9.13.
--
Alexandre Julliard
***@winehq.org
pelzflorian (Florian Pelz)
2016-06-24 06:36:14 UTC
Permalink
Post by Alexandre Julliard
Post by pelzflorian (Florian Pelz)
Hello,
Gothic has problems with the titlebar for a long time. This may or may
not be related.
Bisecting the git versions reveals that the change has been introduced
45b2b1f09b30b01726685983dd8e3edb42c1fd1c is the first bad commit
commit 45b2b1f09b30b01726685983dd8e3edb42c1fd1c
Date: Fri May 27 21:08:44 2016 +0900
explorer: Add a helper function to resize and display the tray window.
This probably should be reported as a bug. Will you do it?
This should already be fixed in git. The fix will be included in 1.9.13.
Yes it is. I should have checked master as well. Sorry for wasting your
time.

Regards,
Florian Pelz

Loading...