FS#6212 - GUI zoom issues

Attached to Project: OpenTTD
Opened by frosch (frosch) - Saturday, 17 January 2015, 19:25 GMT
Last edited by frosch (frosch) - Saturday, 17 January 2015, 19:25 GMT
Type Bug
Category Core
Status Confirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Samu's problems with attached screenshots:
* Chat too small.
* News: "Manager" cut off, too small
* Statusbar too small.

Possibly scale default sizes of all windows. (unless custom size stored)
This task depends upon

Comment by Coragem (ST2) - Sunday, 18 January 2015, 05:48 GMT
noticed that the screenshots were taken from our 1.5.0-beta1 test server (pompously called server #XX) - actually serves to test beta1 and some of GS's we use (this particular one is based on Aphid's CB gamescript).
Until now, server side, all goes without problems, and hopefully it's not a server setting that causes this. But if anything we can help, BTPro team is available :)
Comment by frosch (frosch) - Tuesday, 03 February 2015, 21:18 GMT
Experimental implementation attached. At quad-zoom everything is so huge now, that it is unusable on a normal 1920x1080 screen. But maybe that is correct :)

The reason why this is so complicated, is that windows need to resize when changing the GUI zoom setting. As such the window must remember the original size restrictions, and need to distinguish them by unit (real pixels, traditional pixels, text lines).

Some places do widget size computation in the constructor. Likely these need to be rewritten to properly use UpdateWidgetSize.

The chat width thingie is a completely different issue. Currently there is a setting "gui.network_chat_box_width" which uses pixels and defaults to 620. Currently I think about replacing this "pixel setting" is a "percentage setting", so that it scales with window size.
Comment by frosch (frosch) - Friday, 13 February 2015, 21:23 GMT
Chat, statusbar and some windows have been fixed.

Highscore and end-game are mostly broken.

The smallest-size computations from above patch remain valid.
Comment by andythenorth (andythenorth) - Sunday, 06 August 2017, 19:31 GMT
Station list vehicle-type icons are borked (truncated) :)