Permalink
Browse files

Retina position fix fix

  • Loading branch information...
jfkominsky authored and peircej committed Apr 17, 2018
1 parent 0d4538d commit e7b111cc1181f74094392789bf989338cf09f5c5
Showing with 2 additions and 2 deletions.
  1. +2 −2 psychopy/visual/backends/pygletbackend.py
@@ -210,8 +210,8 @@ def __init__(self, win, *args, **kwargs):
win.pos = [(thisScreen.width - win.size[0]) / 2,
(thisScreen.height - win.size[1]) / 2]
if not win._isFullScr:
print(win.size[0])
self.winHandle.set_location(int(win.pos[0] + thisScreen.x),
# add the necessary amount for second screen
self.winHandle.set_location(int(win.pos[0] + thisScreen.x),
int(win.pos[1] + thisScreen.y))
try: # to load an icon for the window

0 comments on commit e7b111c

Please sign in to comment.