Skip to content

Commit

Permalink
Fix size of OpenGL backend at init
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Oct 1, 2020
1 parent 8e58119 commit 9c041e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions silx/gui/plot/backends/BackendOpenGL.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def __init__(self, plot, parent=None, f=qt.Qt.WindowFlags()):
foregroundColor=(0., 0., 0., 1.),
gridColor=(.7, .7, .7, 1.),
marginRatios=(.15, .1, .1, .15))
self._plotFrame.size = ( # Init size with size int
int(self.getDevicePixelRatio() * 640),
int(self.getDevicePixelRatio() * 480))

# Make postRedisplay asynchronous using Qt signal
self._sigPostRedisplay.connect(
Expand Down

0 comments on commit 9c041e7

Please sign in to comment.