bsp2 / VeeSeeVSTRack

Open-source virtual modular synthesizer
http://vcvrack.com/
BSD 3-Clause "New" or "Revised" License
257 stars 28 forks source link

Fix Window Resizing issues, remove LGLW logging by default #19

Closed cameronleger closed 5 years ago

cameronleger commented 5 years ago

Creating/Destroying GL Context is refactored into local functions Create/Destroy GL Context when resizing Window Resize child after parent Resize hidden window

There were two issues with resizing: First, the view was not properly resized as the GL Context always keeps its initial size. Now, the hidden window is resized, the GL Context is recreated, then the actual window is resized Second, for some reason when resizing the Child, the Parent Window's total size would update, but not the Window itself. This led to the delta math being wrong as it applied to the new size instead of its old size. Now, the Parent is resized first, then the Child