aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 19:28:22 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commite7ccbec8f5f0097ca54b8d7ea27e0815b069b57c (patch)
tree9b8cfba48e3078a15b5c68f70a1e8a442b84025e /pugl/detail/win.c
parentf98e804c5f844f2dd78e94f7a1c9db15b7332fbb (diff)
downloadpugl-e7ccbec8f5f0097ca54b8d7ea27e0815b069b57c.tar.gz
pugl-e7ccbec8f5f0097ca54b8d7ea27e0815b069b57c.tar.bz2
pugl-e7ccbec8f5f0097ca54b8d7ea27e0815b069b57c.zip
Replace size and aspect ratio init functions with dynamic ones
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r--pugl/detail/win.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 2c4074c..96642cc 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -804,3 +804,25 @@ puglSetFrame(PuglView* view, const PuglRect frame)
return PUGL_SUCCESS;
}
+
+PuglStatus
+puglSetMinSize(PuglView* const view, const int width, const int height)
+{
+ view->minWidth = width;
+ view->minHeight = height;
+ return PUGL_SUCCESS;
+}
+
+PuglStatus
+puglSetAspectRatio(PuglView* const view,
+ const int minX,
+ const int minY,
+ const int maxX,
+ const int maxY)
+{
+ view->minAspectX = minX;
+ view->minAspectY = minY;
+ view->maxAspectX = maxX;
+ view->maxAspectY = maxY;
+ return PUGL_SUCCESS;
+}