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

Display Window resize to minimum malfunction #233

Closed
IBIT-ZEE opened this issue May 21, 2020 · 0 comments
Closed

Display Window resize to minimum malfunction #233

IBIT-ZEE opened this issue May 21, 2020 · 0 comments
Labels

Comments

@IBIT-ZEE
Copy link

IBIT-ZEE commented May 21, 2020

v1.4.0.1637

View-Display Window (blue window info at botton)

When you resize this panel to minimum...
it malfunctions and cover all the files area...

@IBIT-ZEE IBIT-ZEE added the bug label May 21, 2020
@derceg derceg closed this as completed in 7710749 May 29, 2020
derceg added a commit that referenced this issue Oct 31, 2020
When the display window is resized, a WM_USER_DISPLAYWINDOWRESIZED
message is sent to the parent. This message contains the updated
width/height of the display window.

With the way the updated width and height are calculated, it's possible
for the values to be negative. This was causing problems because the
values would be interpreted as unsigned on the receiving end and so a
negative value would be reinterpreted as a different positive value.

To fix this, the values are now clamped before they're sent so that
they're in the positive range. That is, the minimum value that will be
sent is 0.

This fixes #233.

(cherry picked from commit 7710749)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant