aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 17:37:29 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commit1c585b574df224e44c5063474e4577a3e749be05 (patch)
treee12932ffeefa8f3bfb38d278f6d38baf09a67063 /pugl/detail/mac.m
parent7d72d835097ea87d53b0e439ac759ef956ed0432 (diff)
downloadpugl-1c585b574df224e44c5063474e4577a3e749be05.tar.gz
pugl-1c585b574df224e44c5063474e4577a3e749be05.tar.bz2
pugl-1c585b574df224e44c5063474e4577a3e749be05.zip
Use consistent naming conventions
Diffstat (limited to 'pugl/detail/mac.m')
-rw-r--r--pugl/detail/mac.m18
1 files changed, 9 insertions, 9 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m
index b7495f4..ea55c0f 100644
--- a/pugl/detail/mac.m
+++ b/pugl/detail/mac.m
@@ -726,9 +726,9 @@ puglCreateWindow(PuglView* view, const char* title)
[impl->wrapperView initWithFrame:
NSMakeRect(0, 0, view->frame.width, view->frame.height)];
[impl->wrapperView addConstraint:
- puglConstraint(impl->wrapperView, NSLayoutAttributeWidth, view->min_width)];
+ puglConstraint(impl->wrapperView, NSLayoutAttributeWidth, view->minWidth)];
[impl->wrapperView addConstraint:
- puglConstraint(impl->wrapperView, NSLayoutAttributeHeight, view->min_height)];
+ puglConstraint(impl->wrapperView, NSLayoutAttributeHeight, view->minHeight)];
// Create draw view to be rendered to
int st = 0;
@@ -755,7 +755,7 @@ puglCreateWindow(PuglView* view, const char* title)
const NSRect frame = rectToScreen(
NSMakeRect(view->frame.x, view->frame.y,
- view->min_width, view->min_height));
+ view->minWidth, view->minHeight));
unsigned style = (NSClosableWindowMask |
NSTitledWindowMask |
@@ -772,18 +772,18 @@ puglCreateWindow(PuglView* view, const char* title)
] retain];
[window setPuglview:view];
[window setTitle:titleString];
- if (view->min_width || view->min_height) {
- [window setContentMinSize:NSMakeSize(view->min_width,
- view->min_height)];
+ if (view->minWidth || view->minHeight) {
+ [window setContentMinSize:NSMakeSize(view->minWidth,
+ view->minHeight)];
}
impl->window = window;
((NSWindow*)window).delegate = [[PuglWindowDelegate alloc]
initWithPuglWindow:window];
- if (view->min_aspect_x && view->min_aspect_y) {
- [window setContentAspectRatio:NSMakeSize(view->min_aspect_x,
- view->min_aspect_y)];
+ if (view->minAspectX && view->minAspectY) {
+ [window setContentAspectRatio:NSMakeSize(view->minAspectX,
+ view->minAspectY)];
}
[window setContentView:impl->wrapperView];