Browse Source

Implement OSX setSize

gh-pages
falkTX 10 years ago
parent
commit
b85c155db2
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      dgl/src/pugl/pugl_osx_extended.m

+ 7
- 7
dgl/src/pugl/pugl_osx_extended.m View File

@@ -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)


Loading…
Cancel
Save