aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-04-22 15:49:13 -0400
committerDavid Robillard <d@drobilla.net>2022-04-23 21:18:33 -0400
commitc80ee9c1fccdf86b4c7c9d5a3b34ec024432e1a3 (patch)
tree7e32a603bcaf93540022ae669d7894851d263df5 /src/win.c
parent1f33fca3bcf2f7f329f9ba46b2c19f785e00ec98 (diff)
downloadpugl-c80ee9c1fccdf86b4c7c9d5a3b34ec024432e1a3.tar.gz
pugl-c80ee9c1fccdf86b4c7c9d5a3b34ec024432e1a3.tar.bz2
pugl-c80ee9c1fccdf86b4c7c9d5a3b34ec024432e1a3.zip
Strengthen MSVC warnings
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win.c b/src/win.c
index 7d4025c..b603b48 100644
--- a/src/win.c
+++ b/src/win.c
@@ -83,13 +83,13 @@ puglRegisterWindowClass(const char* name)
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
wc.lpszClassName = name;
- return RegisterClassEx(&wc);
+ return !!RegisterClassEx(&wc);
}
static unsigned
puglWinGetWindowFlags(const PuglView* const view)
{
- const bool resizable = view->hints[PUGL_RESIZABLE];
+ const bool resizable = !!view->hints[PUGL_RESIZABLE];
const unsigned sizeFlags = resizable ? (WS_SIZEBOX | WS_MAXIMIZEBOX) : 0u;
return (WS_CLIPCHILDREN | WS_CLIPSIBLINGS |