aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-08 12:32:12 +0100
committerDavid Robillard <d@drobilla.net>2020-03-08 14:40:51 +0100
commit3a3e6c2834b5b43018bfcb7ab75f562a1666b8af (patch)
treed00143c53ede5373df59ace1b4506cc8d2935068 /pugl/detail/win.h
parent5fc409c5d2e12f005f092fc83800a93a101dd567 (diff)
downloadpugl-3a3e6c2834b5b43018bfcb7ab75f562a1666b8af.tar.gz
pugl-3a3e6c2834b5b43018bfcb7ab75f562a1666b8af.tar.bz2
pugl-3a3e6c2834b5b43018bfcb7ab75f562a1666b8af.zip
Cleanup: Fix some conversion warnings
Diffstat (limited to 'pugl/detail/win.h')
-rw-r--r--pugl/detail/win.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/win.h b/pugl/detail/win.h
index 4219a36..283f39e 100644
--- a/pugl/detail/win.h
+++ b/pugl/detail/win.h
@@ -49,7 +49,7 @@ puglWinGetPixelFormatDescriptor(const PuglHints hints)
hints[PUGL_GREEN_BITS] + //
hints[PUGL_BLUE_BITS]);
- const DWORD dwFlags = hints[PUGL_DOUBLE_BUFFER] ? PFD_DOUBLEBUFFER : 0;
+ const DWORD dwFlags = hints[PUGL_DOUBLE_BUFFER] ? PFD_DOUBLEBUFFER : 0u;
PuglWinPFD pfd;
ZeroMemory(&pfd, sizeof(pfd));
@@ -72,7 +72,7 @@ static inline unsigned
puglWinGetWindowFlags(const PuglView* const view)
{
const bool resizable = view->hints[PUGL_RESIZABLE];
- const unsigned sizeFlags = resizable ? (WS_SIZEBOX | WS_MAXIMIZEBOX) : 0;
+ const unsigned sizeFlags = resizable ? (WS_SIZEBOX | WS_MAXIMIZEBOX) : 0u;
return (WS_CLIPCHILDREN | WS_CLIPSIBLINGS |
(view->parent