Browse Source

Fix setGeometryConstraints on macOS, aspect ratio was always on

pull/351/head
falkTX 3 years ago
parent
commit
62ba848824
2 changed files with 5 additions and 13 deletions
  1. +1
    -1
      dgl/src/pugl-upstream
  2. +4
    -12
      dgl/src/pugl.cpp

+ 1
- 1
dgl/src/pugl-upstream

@@ -1 +1 @@
Subproject commit 15f70d2a7606cf50d48b72408c0ab4ea7a683380
Subproject commit 0363bc36379a268877af147e759fd6fd5f576c36

+ 4
- 12
dgl/src/pugl.cpp View File

@@ -325,20 +325,12 @@ PuglStatus puglSetGeometryConstraints(PuglView* const view, const uint width, co
view->maxAspectY = (int)height;
}

#if defined(DISTRHO_OS_HAIKU)
// nothing?
#elif defined(DISTRHO_OS_MAC)
/*
if (view->impl->window)
{
[view->impl->window setContentMinSize:sizePoints(view, view->minWidth, view->minHeight)];
#if defined(DISTRHO_OS_HAIKU) || defined(DISTRHO_OS_MAC)
puglSetMinSize(view, width, height);

if (aspect)
[view->impl->window setContentAspectRatio:sizePoints(view, view->minAspectX, view->minAspectY)];
if (aspect) {
puglSetAspectRatio(view, width, height, width, height);
}
*/
puglSetMinSize(view, width, height);
puglSetAspectRatio(view, width, height, width, height);
#elif defined(DISTRHO_OS_WINDOWS)
// nothing
#else


Loading…
Cancel
Save