Commit 78d23b7
committed
Ensure Consistent DPI Awareness in getDPI() for Font Calculation
The DPI computed in getDPI() is used to determine the font height for the OS.ChooseFont dialog. Following the change in b2c80a4, the thread DPI awareness is set to OS.DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED before opening the ChooseFont dialog. This commit ensures the same DPI awareness is applied in getDPI() for consistent font size calculation.
Fixes #28661 parent 9740516 commit 78d23b7
File tree
1 file changed
+18
-8
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+18
-8
lines changedLines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
289 | 299 | | |
290 | 300 | | |
291 | 301 | | |
| |||
0 commit comments