Page 1 of 1

multiple, mismatched screens

PostPosted: 20 Jul 2012, 18:17
by Binky
I recently tried connected up an oldish 1280x1024 monitor alongside my newer/normal 1920x1200 screen
Now I can't work out how to get STK running at full res on my larger screen - I can either get it to display a small window, or fullscreen across the two.
The latter is unworkable because there is a huge gap slightly to the left of centre, and the bottom left corner is missing.
I've also found that selecting some of the larger windowed resolutions results in a window 3200px wide, but of the correct height

What's going on? :think:

Re: multiple, mismatched screens

PostPosted: 20 Jul 2012, 19:43
by KroArtem
Seems like something wrong with irrlicht (supertuxkart's engine) as it handles all work with resolution (@developers: fix me if I'm wrong ;))

As for me, I've got a lot of resolutions on my laptop and just a few for my desktop and that sometimes surprises me.

Re: multiple, mismatched screens

PostPosted: 21 Jul 2012, 01:17
by Auria
Hi,

unfortunately we just take the size that irrlicht reports. And irrlicht, in turn, probably just gets it from the OS, and it looks like the OS sees your screen as one big screen.

The solution would be to manually input a resolution. Ideally we would have an interface for that, but at this time we don't, so you can just edit 'config.xml' (where it is depends on the OS) which contains

{l Code}: {l Select All Code}
    <Video
        width="1280"
        height="720"

Re: multiple, mismatched screens

PostPosted: 21 Jul 2012, 14:14
by Binky
I've found config.xml - but gedit can't guess what character encoding it uses and refuses to open the file.
What editor/encoding is likely to work?

Re: multiple, mismatched screens

PostPosted: 21 Jul 2012, 16:09
by Arthur
gedit works fine, but you have to set it to use Unicode UTF-32.

Re: multiple, mismatched screens

PostPosted: 21 Jul 2012, 18:14
by Binky
OK, I manually set the screen size to 1190 by 1910 (should fill most of my larger screen in windowed mode) but It fills the full width of the two screens instead.
The size I picked also shows up in the resolution picker, but doesn't work.

Is there likely to be a quick fix for this?

Re: multiple, mismatched screens

PostPosted: 21 Jul 2012, 19:13
by Auria
I suspect you left STK in fullscreen mode. I'm afraid that as long as your system reports one large screen, you will not be able to use STK in fullscreen mode, sorry :(

Re: multiple, mismatched screens

PostPosted: 21 Jul 2012, 21:17
by Binky
Both 'fullscreen' and 'prev_fullscreen' are set to 'false' in config.xml, and it was definitely in windowed mode, It just insists on stretching the window across the two screens horizontally - not vertically, just horizontally, with window trimmings, title bar etc round the sides, top and bottom.

From experimentation, I have found that any resolution/window size with a width of 1280 px or above (which is the width of my smaller screen) causes the window to stretch to the width of my combined screens.