Page 1 of 1

[Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 6:46 am
by Major Cooke
I made then deleted this thread because one time it managed to remember the window sizes. But then it started happening again.

https://puu.sh/B0wMf/a13c022503.png

The game keeps shrinking back to it's default size in Windowed mode no matter what I do, and furthermore, vid_defheight/weight are 1600 and 900 respectively, yet it doesn't set the window properly at all.

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 6:55 am
by _mental_
What are the values of win_x, win_y, win_w, win_h CVARs?

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 7:30 am
by Major Cooke
X: 631
Y: 261
H: 558
W: 658

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 7:47 am
by _mental_
They seem to correspond the screenshot from OP. Do win_w and win_h change if you resize the window?

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 10:16 am
by Major Cooke
No.

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 10:31 am
by Kinsie
The game doesn't seem to be saving or restoring the windowed resolution at all. Whenever the game starts, it defaults to 496x345 or whatever the startup console window is. vid_defwidth etc. are not read, and r_viewsize simply returns a blank string. This probably isn't intended.

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 1:32 pm
by Graf Zahl
Please recheck with the next devbuild.

Re: [Latest master] Window sizes not remembered

Posted: Sat Jul 21, 2018 7:24 pm
by Major Cooke
Compiled and tested, works for me now.