From d7a71b45ddf2a1ccfb124b84305b67e01919a206 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Feb 2023 17:42:44 -0500 Subject: Remove redundant casts --- src/win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/win.c') 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; } -- cgit v1.2.1