diff options
author | David Robillard <d@drobilla.net> | 2020-07-02 23:13:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-02 23:13:55 +0200 |
commit | daa0f2724d56a4cfc787d33c78cce48f844de587 (patch) | |
tree | 8c5dcc9a12231f1edab44c27a22360aa266630f6 /pugl/detail/mac.m | |
parent | 5182a0348e99e8793f0e0230254eb7ddbc8a3dfd (diff) | |
download | pugl-daa0f2724d56a4cfc787d33c78cce48f844de587.tar.gz pugl-daa0f2724d56a4cfc787d33c78cce48f844de587.tar.bz2 pugl-daa0f2724d56a4cfc787d33c78cce48f844de587.zip |
Mac: Fix implicit conversion warnings
Diffstat (limited to 'pugl/detail/mac.m')
-rw-r--r-- | pugl/detail/mac.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m index 0c25f04..774cae1 100644 --- a/pugl/detail/mac.m +++ b/pugl/detail/mac.m @@ -846,7 +846,7 @@ puglConstraint(id item, NSLayoutAttribute attribute, float constant) toItem: nil attribute: NSLayoutAttributeNotAnAttribute multiplier: 1.0 - constant: constant]; + constant: (CGFloat)constant]; } PuglStatus @@ -861,8 +861,8 @@ puglRealize(PuglView* view) return PUGL_BAD_CONFIGURATION; } - const int screenWidthPx = [screen frame].size.width * scaleFactor; - const int screenHeightPx = [screen frame].size.height * scaleFactor; + const double screenWidthPx = [screen frame].size.width * scaleFactor; + const double screenHeightPx = [screen frame].size.height * scaleFactor; view->frame.width = view->defaultWidth; view->frame.height = view->defaultHeight; |