justingardner / mgl

A suite of mex/m files for displaying psychophysics stimuli
http://justingardner.net/mgl
Other
18 stars 22 forks source link

Display screenWidth and Height not being set properly #66

Closed justingardner closed 1 year ago

justingardner commented 2 years ago

Opening a full screen:

mglOpen(1)

and then getting screenWidth and screenHeight

mglGetParam('screenWidth') mglGetParam('screenHeight')

Return 800 x 600 and not the correct pixel dimensions. Also, xDeviceToPixels and yDeviceToPixels seem incorrect for the same reason.

justingardner commented 2 years ago

Fixed this in mglMetalOpen - was not resizing after calling full screen. This still needs to be fixed for if user rescales the window after opening

justingardner commented 1 year ago

Closing since it works on full screen. Probably still won't work if there Is explicit resizing of a windowed context, but limited use case for that, so will leave it unfixed.