umlaeute / Gem

Graphics Environment for Multimedia (official repository)
https://gem.iem.at
Other
103 stars 30 forks source link

Issues in single buffering and [dimen( #345

Closed 60-hz closed 1 year ago

60-hz commented 1 year ago

When using single buffering mode under windows and [gemglfw3window], resizing the window or giving a new [dimen ( message draw in lower left part of the screen. No issue under MacOS.

The correct values are sent to [GEMglViewport] inside [pd viewport] but maybe the buffer is not updated.

Based on master d2b7279e

60-hz commented 1 year ago

I forgot that dimen was supposed to be sent before window creation. Closed.

But there is still an inconsistency between MacOS and windows with [gemglfw3window] and single buffering: under windows the screen need to be destroyed and re-created in single buffering, then banged to clear the buffer in order to have the correct buffer size On MacOS it's possible to resize the window with mouse or send a reset message to [gemwin] before setting a new dimension.