Commit ca08003
committed
fix: stop the window resizing itself out of control
This was the crash. The window sized itself to the device proportions by reading
innerSize() — physical pixels — and writing it back as a LogicalSize. On a
Retina display those differ by the scale factor, so every run through doubled
the window: 470 wide became 940, then 1880, until the frame filled the screen
and the editor was left rendering into a window several times its size, showing
nothing but background.
The calculation is gone rather than corrected. The device already holds its own
aspect ratio whatever the window does, so a window that does not exactly match
letterboxes it — which is all the resize was ever avoiding, at the price of
fighting the user's own window size.1 parent a990789 commit ca08003
2 files changed
Lines changed: 2 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | 205 | | |
220 | 206 | | |
221 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
0 commit comments