forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit ff5c842
qt: Use better devicePixelRatio event to refresh scaling
With Qt 6.6, there is an event on the window that signals when the
devicePixelRatio has changed. This is better than before when we had to
rely on the underlying `QScreen`, which doesn't correctly refresh when a
fractional scale is used.
Fixes matplotlib#30218 1 parent 95db12f commit ff5c842
File tree
2 files changed
+25
-9
lines changed- lib/matplotlib
- backends
- tests
2 files changed
+25
-9
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
265 | + | ||
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | ||
265 | 270 |
| |
266 | 271 |
| |
267 | 272 |
| |
268 | 273 |
| |
269 | - | ||
270 | - | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | ||
279 | + | ||
271 | 280 |
| |
272 | 281 |
| |
273 | 282 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 | - | ||
140 | + | ||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
| |||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
157 | - | ||
158 | - | ||
159 | - | ||
160 | - | ||
161 | - | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | ||
162 | 170 |
| |
163 | 171 |
| |
164 | 172 |
| |
| |||
168 | 176 |
| |
169 | 177 |
| |
170 | 178 |
| |
171 | - | ||
172 | 179 |
| |
173 | 180 |
| |
174 | 181 |
| |
|
0 commit comments