DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit b85c155db2cb2c197b9530e01c4c8b571a17690d
parent 3d2d6fb29c87e60a4e6762be1774d10f338d3b04
Author: falkTX <falktx@gmail.com>
Date:   Sat, 18 Jan 2014 16:20:45 -0800

Implement OSX setSize

Diffstat:
Mdgl/src/pugl/pugl_osx_extended.m | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/dgl/src/pugl/pugl_osx_extended.m b/dgl/src/pugl/pugl_osx_extended.m @@ -30,15 +30,15 @@ void puglImplFocus(PuglView* view) void puglImplSetSize(PuglView* view, unsigned int width, unsigned int height) { - //id window = view->impl->window; + id window = view->impl->window; - // TODO - //NSRect frame = [window frame]; - //frame.size.width = width; - //frame.size.height = height; + NSRect frame = [window frame]; + frame.origin.y -= frame.size.height; + frame.origin.y += height; + frame.size.width = width; + frame.size.height = height; - // display:NO ? - //[window setFrame:frame display:YES animate:NO]; + [window setFrame:frame display:YES animate:NO]; } void puglImplSetTitle(PuglView* view, const char* title)