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

HiDPI fix #1003

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

HiDPI fix #1003

wants to merge 1 commit into from

Conversation

ESPINS
Copy link

@ESPINS ESPINS commented Jul 2, 2024

Issue

When using XLog in a HiDPI environment with the -Dswt.autoScale=quarter option added to the scouter.ini file, the graphs appear blurry.
This is because when drawing a point using the drawPoint method in a HiDPI environment, the pixel is enlarged to become opaque.

Solution

The issue has been resolved by modifying the code to draw graphs using rectangles instead of points using the fillRectangle method.

Additional Details

The -Dswt.autoScale=quarter option is automatically selects the appropriate HiDPI ratio.
The drawPoint method draws individual pixels, which can appear blurry when scaled up.
The fillRectangle method draws filled rectangles, which provide a smoother and more consistent appearance in HiDPI environments.

Blurry XLog

Blurry XLog

Clear XLog

Clear XLog

Issue:
When using XLog in a HiDPI environment with the -Dswt.autoScale=quarter option added to the scouter.ini file, the graphs appear blurry.
This is because when drawing a point using the drawPoint method in a HiDPI environment, the pixel is enlarged to become opaque.

Solution:
The issue has been resolved by modifying the code to draw graphs using rectangles instead of points using the fillRectangle method.

Additional Details:
The -Dswt.autoScale=quarter option is automatically selects the appropriate HiDPI ratio.
The drawPoint method draws individual pixels, which can appear blurry when scaled up.
The fillRectangle function draws filled rectangles, which provide a smoother and more consistent appearance in HiDPI environments.
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.

1 participant