PTB 3.0.11 does not handle screen resolutions properly for a "Retina" display, at least for OSX 10.9.2. Can anyone suggest a fix or workaround?
When the screen resolution is initially set to 1920x1200,
this resolution is correctly reported by Screen('Resolution',0),
and I can adjust the resolution to 2880x1800 (the native resolution),
but I cannot set it back to 1920x1200 without an error.
Oddly, I cannot even set the resolution to 1920x1200 when it is *already* that resolution.
Here is example code:
r = Screen('Resolution', 0)
r = Screen('Resolution', 0, r.width, r.height, r.pixelSize, r.hz)
OUTPUT:
r =
width: 1920
height: 1200
pixelSize: 32
hz: 0
Error in function Resolution: Invalid pixel size argument
Illegal depth value
Error using Screen
Usage:
oldResolution=Screen('Resolution', screenNumber [, newwidth][, newheight][, newHz][, newPixelSize][, specialMode]);
Error in laptop_resolution (line 7)
r = Screen('Resolution', 0, r.width, r.height, r.pixelSize, r.hz)