Jump to content

Window doesn't fill screen on Linux


Torgo

Recommended Posts

I installed the widescreen mod with a resolution of 1024 x 600. Here is the result when I launch "full screen" mode:

 

IAIA5q0l.png

 

I've tried 1024 x 576 and 960 x 540 with the same result. I also tried 1024 x 768, which curiously did fill the whole screen.

 

I thought it might be related to this bug on WineHQ, but I have 3D acceleration turned off.

 

I did try turning it on to see if it made any difference, and the game crashed. (See attached bug report)

 

I have played in the game in at least one of these resolutions under Windows (1024 x 600 I think), so I know it's not a hardware compatibility issue. Also, I can set my desktop resolution to 1024 x 600, 1024 x 576 or 960 x 540 using `xrandr` from the command line.

 

FYI here's the output of `xrandr`:

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm panning 1366x768+0+0
   1366x768       60.0*+
   1360x768       59.8     60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
   960x540        59.6  
   1024x576       59.9  
   1024x600       59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

And here's the first part of baldur.ini:

[Program Options]
Installing=0
Install Type=3
BitsPerPixel=16
16Bit Textures=0
3D Acceleration=0
GLSetup Driver=-1
Font Name=
Double Byte Character Support=0
Drop Capitals=1
Display Frequency=60
Resolution=1024
Maximum Frame Rate=30
Path Search Nodes=32000
Tooltips=60
Translucent Shadows=1
Sprite Mirror=0
Gamma Correction=0
Brightness Correction=0
Backwards Compatible 3d=0
Volume Movie=100
Volume Music=80
Volume Voices=100
Volume Ambients=100
Volume SFX=100
SoftSrcKeyBltFast=0
SoftBltFast=0
SoftSrcKeyBlt=0
SoftBlt=0
SoftMirrorBlt=0
Strref On=0
First Run=0
Full Screen=1
Screen Position X=65
Screen Position Y=24

backtrace.txt

Link to comment

how is this not expected behaviour? You picked a resolution lower than your screen resolution ...

Since xrandr shows 1024x600 as supported, shouldn't he get that resolution ?

 

In fullscreen mode (unless a virtual desktop is emulated in winecfg), wine should change the X resolution to the one chosen if the monitor supports it.

Link to comment

It is not a proper solution but does it suit you running a shell script that changes the resolution and then changes it back ? Something like the following ?

 

#!/bin/bash
cd /home/rmorton/.wine/drive_c/path/to/bg2/folder/
xrandr --output eDP1 --mode 1024x576
wine bgmain.exe  (is it still bgmain.exe on GOG version?)
xrandr --output eDP1 --mode 1366x768
Link to comment

you can rerun xrandr to get the settings back. Anyway, why not just run a fullscreen window?

 

Oh, now I see why you were confused earlier. I am running a fullscreen "window." i.e., I select "Baldur's Gate 2 Fullscreen" when I run the game and not "Baldur's Gate 2 Windowed." The GOG launcher gives you these two options.

 

As for running xrandr to get the settings back, this sort of works. The taskbar fills the screen but windows only resize to 1024 x 576 (or whatever resolution the game was running in) unless I log out and in again.

Link to comment

It is not a proper solution but does it suit you running a shell script that changes the resolution and then changes it back ? Something like the following ?

 

#!/bin/bash
cd /home/rmorton/.wine/drive_c/path/to/bg2/folder/
xrandr --output eDP1 --mode 1024x576
wine bgmain.exe  (is it still bgmain.exe on GOG version?)
xrandr --output eDP1 --mode 1366x768

 

There is a bgmain.exe but it throws an error. I'll have to try it again but I think the error is just "-1".

 

There's also a baldur.exe which runs a launcher with the option to install or play the game. The play option is greyed out, and the install option does nothing.

 

This is why I'm running the game with the startup script supplied in the GOG distribution. I mentioned this in my other thread.

Link to comment

 

But I want it to be fullscreen... I'm so confused :O

If you reinstall widescreen and choose 1366x768 resolution, won't it run "fullscreen" ?

 

 

Probably but then my party will look like ants. In Windows I've always been able to install the widescreen mod at a lower resolution than native and it has always just worked.

Link to comment

It is not a proper solution but does it suit you running a shell script that changes the resolution and then changes it back ? Something like the following ?

 

#!/bin/bash
cd /home/rmorton/.wine/drive_c/path/to/bg2/folder/
xrandr --output eDP1 --mode 1024x576
wine bgmain.exe  (is it still bgmain.exe on GOG version?)
xrandr --output eDP1 --mode 1366x768

 

When I run `wine bgmain.exe` it throws this error:

An assertion failed in ChDimm.cpp at line number 628
Programmer says: Unable to Open BIF:DATA\HD0GMOSC.BIF

Edit: oh wow, I just realized the game can't find the data files because of baldur.ini...

[Alias]
HD0:=C:\GOG Games\Baldur's Gate 2
CD1:=C:\GOG Games\Baldur's Gate 2\data\
CD2:=C:\GOG Games\Baldur's Gate 2\data\
CD3:=C:\GOG Games\Baldur's Gate 2\data\
CD4:=C:\GOG Games\Baldur's Gate 2\data\
CD5:=C:\GOG Games\Baldur's Gate 2\data\
CD6:=C:\GOG Games\Baldur's Gate 2\data\

Seems like something Wine should be able to handle. Hmmm, maybe if I change my WINEPREFIX environment variable...

#!/bin/bash

export WINEPREFIX="/home/rmorton/Games/Baldurs Gate 2/prefix"

cd "$WINEPREFIX/drive_c/GOG Games/Baldur's Gate 2/"

wine bgmain.exe

It works!!! No changing screen resolution manually or anything :D

 

(Sorry for the noob error)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...