Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Retina position fix fix
  • Loading branch information
jfkominsky authored and peircej committed May 14, 2018
1 parent 0d4538d commit e7b111c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psychopy/visual/backends/pygletbackend.py
Expand Up @@ -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
Expand Down

0 comments on commit e7b111c

Please sign in to comment.