Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caption of small news message window is not scaled to test size #6549

Closed
DorpsGek opened this issue Mar 26, 2017 · 1 comment
Closed

Caption of small news message window is not scaled to test size #6549

DorpsGek opened this issue Mar 26, 2017 · 1 comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

peter1138 opened the ticket and wrote:

Small news window has a fake caption which is 'hand drawn'. This is preusmably done to avoid using a caption which would allow the window to be moved. However its default size relies on the height of the close box, which may be wrong if the test size is larger.

Attached are two patches which fix this in different ways:

  1. Simply adds the minimum size on during window setup.

  2. Replaces the custom caption with a real caption and adds a window flag to prevent it being dragged. Also allows the caption click event to filter down so that the small news window behaves the same. This allows DrawCaption() to not be exposed.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6549
@DorpsGek
Copy link
Member Author

DorpsGek commented Apr 1, 2017

peter1138 closed the ticket.

Reason for closing: Fixed

In r27838 (smaller patch)


This comment was imported from FlySpray: https://bugs.openttd.org/task/6549

@DorpsGek DorpsGek closed this as completed Apr 1, 2017
@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant