Thread: IPlug - Youlean
View Single Post
Old 04-19-2017, 07:00 AM   #55
Human being with feelings
Youlean's Avatar
Join Date: May 2015
Location: Serbia
Posts: 652

Originally Posted by Soundbytes View Post
I did a little more digging into the code and found that the Gui resize code is spread all over the place.
I would love to avoid checking wether the gui is resizable within each and every call to Draw() and in so many other places.
Couldn't the resizing be driven by a resize event?
This way it could be encapsulated in a IControl::Resize() member function.
I still have to dig deeper to see what is going on. What is the reason You did it this way?
This was done because of backwards compatibility with WDL-OL. Mainly it is there if someone doesn't want to use GUI Resize.
Youlean is offline   Reply With Quote