-
Notifications
You must be signed in to change notification settings - Fork 143
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
[win32] Init nativeZoom of Tracker on creation #1268
[win32] Init nativeZoom of Tracker on creation #1268
Conversation
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. Since I propose to do a separate PR for @HeikoKlare 's comment, this PR is good to go on my account.
@HeikoKlare if you agree, this PR can be merged.
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java
Show resolved
Hide resolved
No, the implementation is wrong (see my comment), so it should not be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is fine, thank you! My comment was invalid as I mixed up methods from the Display
and DPIUtil
classes.
As one constructor of Tracker is not calling the super constructor the nativeZoom attribute must be set here as well. As it only has the display as reference, the zoom of the display (currently equal to primary monitor zoom) will be used. Contributes to eclipse-platform#62 and eclipse-platform#131
06b4342
to
f505197
Compare
As one constructor of Tracker is not calling the super constructor the nativeZoom attribute must be set here as well. As it only has the display as reference, the zoom of the display (currently equal to primary monitor zoom) will be used.
Contributes to #62 and #131