Commit bf1fcd7
authored
HiDPI fix
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.1 parent 474c456 commit bf1fcd7
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
| |||
0 commit comments