File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,16 @@ def MaxSizeChangedCB(self, new_size):
120
120
log .info ('Waiting for main window to initialize before calling SetMaxSize' )
121
121
time .sleep (0.5 )
122
122
123
- log .info ("Adjusting max size of preview image: %s" % new_size )
123
+ # Increase based on DPI
124
+ new_size *= self .window .devicePixelRatioF ()
124
125
125
- # Clear timeline preview cache (since our video size has changed)
126
- self .timeline .ClearAllCache ()
126
+ log .info ("Adjusting max size of preview image: %s" % new_size )
127
127
128
128
# Set new max video size (Based on preview widget size and display scaling)
129
- scale = self .window .devicePixelRatioF ()
130
- self .timeline .SetMaxSize (round (new_size .width () * scale ), round (new_size .height () * scale ))
129
+ self .timeline .SetMaxSize (new_size .width (), new_size .height ())
130
+
131
+ # Clear timeline preview cache (since our video size has changed)
132
+ self .timeline .ClearAllCache (True )
131
133
132
134
# Refresh current frame (since the entire timeline was updated)
133
135
self .window .refreshFrameSignal .emit ()
You can’t perform that action at this time.
0 commit comments