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

Scaling stars on a HiDPI devices #2846

Merged
merged 4 commits into from
Nov 17, 2022
Merged

Conversation

alex-w
Copy link
Member

@alex-w alex-w commented Nov 15, 2022

Description

This PR introducing configurable option to enabling scaling stars on a HiDPI devices to better visualisation of a faint stars

Fixes #2840 (issue)

Screenshots (if appropriate):

Before:
stellarium-005

After:
stellarium-006

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update

Checklist:

  • My code follows the code style of this project.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (header file)
  • I have updated the respective chapter in the Stellarium User Guide
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@github-actions
Copy link

github-actions bot commented Nov 15, 2022

Great PR! Please pay attention to the following items before merging:

Files matching src/**/*.cpp:

  • Are possibly unused includes removed?

This is an automatically generated QA checklist based on modified files

@alex-w alex-w added this to the 1.2 milestone Nov 15, 2022
@alex-w alex-w requested a review from 10110111 November 16, 2022 16:23
@alex-w
Copy link
Member Author

alex-w commented Nov 16, 2022

@gzotti @10110111 please review the PR

@10110111
Copy link
Contributor

Why do we even need a flag? Shouldn't it be always-on?

@gzotti
Copy link
Member

gzotti commented Nov 16, 2022

I cannot test it. Have a 3880x1440 monitor which is not regarded HiDPI. If this is a hardware property which is either 1 or 2, I agree with @10110111 that this should be set automatically.

@10110111
Copy link
Contributor

If this is a hardware property which is either 1 or 2

No, it's rather an OS property which can be anything from 100% to 500% or something like that.

@gzotti
Copy link
Member

gzotti commented Nov 16, 2022

OK, I was reading about QScreen::devicePixelRatio(). Is this what you set (on Windows) as gui scaling ("100-500, 500 not recommended")? Checking always requires a logout/login for me, so I don't like to even test it.

@10110111
Copy link
Contributor

Is this what you set (on Windows) as gui scaling ("100-500, 500 not recommended")?

Yes, exactly this setting.

Checking always requires a logout/login for me, so I don't like to even test it.

That's strange, at least on Windows 11 it's applied on the fly (Stellarium needs a relaunch).

@gzotti
Copy link
Member

gzotti commented Nov 16, 2022

I remember it worked on the fly with my previous screen. It may depend on what screen is attached, HDMI or Thunderbolt. Only the latter has the full resolution, though.

@alex-w
Copy link
Member Author

alex-w commented Nov 17, 2022

OK, it's always on now

Copy link
Member

@gzotti gzotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for me.

@alex-w alex-w merged commit 3c0cb88 into master Nov 17, 2022
@alex-w alex-w deleted the visualisation/draw-point-source branch November 17, 2022 11:28
@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label Nov 20, 2022
@github-actions
Copy link

Hello @alex-w!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Dec 25, 2022
@github-actions
Copy link

Hello @alex-w!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Scaling for stars
3 participants