diff options
author | David Robillard <d@drobilla.net> | 2023-02-04 17:42:44 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-12 11:14:49 -0400 |
commit | d7a71b45ddf2a1ccfb124b84305b67e01919a206 (patch) | |
tree | 7e493e1f0e493a8e78489a1169367ed609370ad7 /src | |
parent | 3e6504247e5eb05fb9e326f8550daa5e2a18737a (diff) | |
download | pugl-d7a71b45ddf2a1ccfb124b84305b67e01919a206.tar.gz pugl-d7a71b45ddf2a1ccfb124b84305b67e01919a206.tar.bz2 pugl-d7a71b45ddf2a1ccfb124b84305b67e01919a206.zip |
Remove redundant casts
Diffstat (limited to 'src')
-rw-r--r-- | src/win.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |