Skip to content
Permalink
Browse files

Merge pull request #1498 from swt2c/glcanvas_demo_hidpi

Fix GLCanvas demo when using HiDPI display
  • Loading branch information
RobinD42 committed Jan 29, 2020
2 parents 9b9b1c8 + ae11372 commit 9407f76526a818b8e7e5d08c02d9ca3167adcdf2
Showing with 1 addition and 1 deletion.
  1. +1 −1 demo/GLCanvas.py
@@ -102,7 +102,7 @@ def OnSize(self, event):


def DoSetViewport(self):
size = self.size = self.GetClientSize()
size = self.size = self.GetClientSize() * self.GetContentScaleFactor()
self.SetCurrent(self.context)
glViewport(0, 0, size.width, size.height)

0 comments on commit 9407f76

Please sign in to comment.
You can’t perform that action at this time.