The International Simutrans Forum

Development => Bug Reports => Topic started by: Yona-TYT on January 11, 2026, 08:48:41 PM

Title: Scenario imagens in info windows
Post by: Yona-TYT on January 11, 2026, 08:48:41 PM
Topic : https://forum.simutrans.com/index.php/topic,23511.0.html 

Using: Linux SD2 r11862

There's a small bug that changes the icon scale when you zoom in.
simscr03.png
simscr01.png



Title: Re: Scenario imagens in info windows
Post by: Andarix on January 11, 2026, 09:08:47 PM
r11867 Windows x64 GDI

it does not occur
Title: Re: Scenario imagens in info windows
Post by: Yona-TYT on January 11, 2026, 11:21:57 PM
Quote from: Andarix on January 11, 2026, 09:08:47 PMr11867 Windows x64 GDI

it does not occur
I am using: r11867 Linux x64 SDL
Title: Re: Scenario imagens in info windows
Post by: Yona-TYT on February 14, 2026, 11:51:44 PM
I've found a clue!

When the GUI theme uses the parameter "icon_scaling = 150", the large icon scale is also being transferred to the scenario window icons. The strange thing is that this only happens with certain zoom levels.

This explains why @Andarix couldn't replicate this, since he was using a theme with normal-sized icons.
Title: Re: Scenario imagens in info windows
Post by: Andarix on February 16, 2026, 10:40:54 AM
Scaling is activated when the images are loaded.

The images within the text are the loaded images.

Either the scaling in the text display must be reduced, or the images must be embedded in a way that allows for flowing text.

The former should be easier to implement.
Title: Re: Scenario imagens in info windows
Post by: Yona-TYT on February 18, 2026, 09:35:50 PM
Quote from: Andarix on February 16, 2026, 10:40:54 AMScaling is activated when the images are loaded.
The images within the text are the loaded images.
Either the scaling in the text display must be reduced, or the images must be embedded in a way that allows for flowing text.
The former should be easier to implement.
But this is a bug, the large scale is only affecting a specific zoom level of the game's overall map, so it shouldn't be difficult to fix.
Title: Re: Scenario imagens in info windows
Post by: ceeac on March 02, 2026, 08:45:24 AM
Should be fixed in r11892 (by force-displaying the non-scaled tool image).