Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Backward-compatibility issue OS 0.27 with OpenGL backend

edited December 2012 in OpenSesame

In opensesame 0.27 the self.experiment.resolution property has changed from a tuple to a function. If an experiment is run which has been built using the OpenGL backend in a version prior to 0.27, OS crashes with the message

File "...OSDIR....\openexp_canvas\opengl.py", line 116, in clear
surface = pygame.Surface(self.experiment.resolution)
ValueError: size needs to be (int width, int height)

The problem is solved if you change

surface = pygame.Surface(self.experiment.resolution)

on line 116 in openexp/_canvas/opengl.py to

surface = pygame.Surface(self.experiment.resolution() )

Sign In or Register to comment.