davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
99 stars 25 forks source link

Turning off fullscreen gives oversized window #200

Open Szunti opened 6 years ago

Szunti commented 6 years ago

I am running Awesome WM on a laptop with 1366x768 resolution. On fullscreen everything is fine, but if I untick fullscreen I get a window that is much larger than my screen size.

ghost commented 6 years ago

I'm not sure the fix for this will come quick.

While this is geting fixed, you can control the game window width and height when launching windowed.

The exact way to control those might vary a little depending on if you use the standard client or you build your client from sources, but I think in both cases it should reduce to pass these arguments to control the dimensions:

--width <WIDTH_PIXELS>
--height <HEIGHT_PIXELS>

You can expect issues if you get far from 16:9 and 16:10 ratios.

Cheers,

DDR0 commented 6 years ago

Iiiiii mighta just independently fixed it.

"try it now"

Szunti commented 6 years ago

No, still wrong, but different. Now the width is less than my resolution, but the height is still huge.

Loading: aa-non-full2

Main screen: aa-non-full

ghost commented 6 years ago

I don't know how much tested Anura is in these type of desktop environments. I'm sorry I never use Awesome WM, but I sometimes use dwm WM.

In dwm you normally are using either a tiled mode or a floating mode. That pic you share looks to me like if you were using a tiled mode in Awesome. Are you? Can you enable a floating mode? What happens then?

Szunti commented 6 years ago

Same. Actually without the huge black areas above and under the main screen it would be a neatly sized window.