aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-04 17:42:44 -0500
committerDavid Robillard <d@drobilla.net>2023-05-12 11:14:49 -0400
commitd7a71b45ddf2a1ccfb124b84305b67e01919a206 (patch)
tree7e493e1f0e493a8e78489a1169367ed609370ad7 /src
parent3e6504247e5eb05fb9e326f8550daa5e2a18737a (diff)
downloadpugl-d7a71b45ddf2a1ccfb124b84305b67e01919a206.tar.gz
pugl-d7a71b45ddf2a1ccfb124b84305b67e01919a206.tar.bz2
pugl-d7a71b45ddf2a1ccfb124b84305b67e01919a206.zip
Remove redundant casts
Diffstat (limited to 'src')
-rw-r--r--src/win.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win.c b/src/win.c
index da2eaa7..08eebec 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1205,7 +1205,7 @@ adjustedWindowRect(PuglView* const view,
const unsigned flags = puglWinGetWindowFlags(view);
const unsigned exFlags = puglWinGetWindowExFlags(view);
- RECT rect = {(long)x, (long)y, (long)x + (long)width, (long)y + (long)height};
+ RECT rect = {x, y, x + width, y + height};
AdjustWindowRectEx(&rect, flags, FALSE, exFlags);
return rect;
}
@@ -1224,8 +1224,8 @@ puglSetFrame(PuglView* view, const PuglRect frame)
// Set defaults to be used when realized
view->defaultX = frame.x;
view->defaultY = frame.y;
- view->sizeHints[PUGL_DEFAULT_SIZE].width = (PuglSpan)frame.width;
- view->sizeHints[PUGL_DEFAULT_SIZE].height = (PuglSpan)frame.height;
+ view->sizeHints[PUGL_DEFAULT_SIZE].width = frame.width;
+ view->sizeHints[PUGL_DEFAULT_SIZE].height = frame.height;
return PUGL_SUCCESS;
}