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

[win32] Init nativeZoom of Tracker on creation #1268

Conversation

akoch-yatta
Copy link
Contributor

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

@akoch-yatta akoch-yatta requested a review from niraj-modi as a code owner June 7, 2024 08:36
Copy link
Contributor

github-actions bot commented Jun 7, 2024

Test Results

   470 files  ±0     470 suites  ±0   8m 27s ⏱️ -31s
 4 135 tests ±0   4 127 ✅ ±0   8 💤 ±0  0 ❌ ±0 
16 336 runs  ±0  16 244 ✅ ±0  92 💤 ±0  0 ❌ ±0 

Results for commit f505197. ± Comparison against base commit e138ae3.

♻️ This comment has been updated with latest results.

@akoch-yatta akoch-yatta changed the title Init nativeZoom of Tracker on creation [win32] Init nativeZoom of Tracker on creation Jun 27, 2024
Copy link
Contributor

@fedejeanne fedejeanne left a 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.

@HeikoKlare
Copy link
Contributor

@HeikoKlare if you agree, this PR can be merged.

No, the implementation is wrong (see my comment), so it should not be merged.

Copy link
Contributor

@HeikoKlare HeikoKlare left a 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
@HeikoKlare HeikoKlare force-pushed the tracker-set-nativezoom-oncreation branch from 06b4342 to f505197 Compare July 1, 2024 07:17
@HeikoKlare HeikoKlare merged commit 3b4cebf into eclipse-platform:master Jul 1, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants