Commit 99db59c
Have WindowPosition::Centered take scale_factor_override into account (#13949)
# Objective
Fixes #8916
My game has a low resolution pixel art style, and I use
`.with_scale_factor_override()` to make the window larger.
`WindowPosition::Centered` doesn't work for me.
## Solution
If `scale_factor_override` is set, use that over `monitor.scale_factor`
## Testing
Tested on Windows 11 with an Nvidia GPU:
### Main

### This PR
1 parent 9a4de9c commit 99db59c
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | 389 | | |
387 | 390 | | |
| |||
0 commit comments