The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Ranran on December 25, 2018, 12:00:38 AM

Title: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: Ranran on December 25, 2018, 12:00:38 AM
Merry something. I brought a bug report. (´・ω・`)

I noticed that the chart values were not displayed correctly.
This seems to be caused by protruding from the dialog window. This symptom is not seen in the standard.

(https://i.imgur.com/brRIUK3.gif)

In some dialogs, numbers are not displayed even if you change the window size like this.
(https://i.imgur.com/fA5iBEM.gif)
Title: Re: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: jamespetts on December 25, 2018, 12:02:25 AM
I have noticed this for a while and it is rather annoying. I know very little about the graphics engine, and I am having trouble understanding why this is present in Extended but not Standard, as I do not believe that I have altered any code that affects this. I wonder whether there was a fix for this in Standard that has yet to be incorporated into Extended?
Title: Re: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: jamespetts on March 10, 2019, 12:24:19 PM
Can I ask whether any of the Standard developers know whether this was once a problem in Standard that was fixed there?
Title: Re: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: Ranran on March 10, 2019, 12:41:21 PM
I do not know whether the standard had this bug, but standard has the chart set to "right to left" in the default setting and the right margin is more widely taken than extended, It may have not seen this situation much.

But it does not seem to be a right margin problem.
Title: Re: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: jamespetts on March 10, 2019, 01:12:24 PM
It is a very odd issue. I do not understand enough about the code in which it is written to fix it within a reasonable period of time given the other bugs/balance issues, but this is an annoying problem.

If anyone would like to look into this in the meantime, that would be very helpful.
Title: Re: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: Ranran on January 30, 2020, 12:48:35 PM
Oh, old thread. The day has finally come when you travel to hades. Donna Donna Donna Donna~♪ (´・ω・`)

I fixed the cause of missing characters. It seems that this function(display_ddd_proportional, not the display_ddd_proportional_clip) is currently only used to display chart numbers. Therefore there is no effect on others. However, this function is not currently in the standard, so we will need to be aware of how this looks changes when imcorporate from the standard.

I threw a pull request  :arrow:
https://github.com/jamespetts/simutrans-extended/pull/135


EDIT:
Standard does not seem to assume that the display of the numerical value protrudes. The same symptom will be exhibited again if the code is aligned by incorporating in the future. Care must be taken not to erase the function and make the code for its display the same as standard.
Title: Re: Bug: The numerical display of chart is invisible when it protrudes from dialog.
Post by: jamespetts on January 30, 2020, 11:55:06 PM
Excellent - this is very helpful, thank you. This seems to work, so I have incorporated it. This has been an annoyance for some time.