diff options
author | David Robillard <d@drobilla.net> | 2022-10-07 15:19:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-07 15:22:43 -0400 |
commit | 17d90bda87dd445a974de7e644629593ade617d8 (patch) | |
tree | 319a23c713a4d089863d9c169d63a1d2d413521c /examples/pugl_window_demo.c | |
parent | ed4c8a50505ab02a8f3a01e41f5f86acca04b81d (diff) | |
download | pugl-17d90bda87dd445a974de7e644629593ade617d8.tar.gz pugl-17d90bda87dd445a974de7e644629593ade617d8.tar.bz2 pugl-17d90bda87dd445a974de7e644629593ade617d8.zip |
Use uppercase integer literal suffixes
Diffstat (limited to 'examples/pugl_window_demo.c')
-rw-r--r-- | examples/pugl_window_demo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index b3deb0d..1827991 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -36,7 +36,7 @@ typedef struct { bool verbose; } PuglTestApp; -static const uint8_t pad = 64u; +static const uint8_t pad = 64U; static void onDisplay(PuglView* view) @@ -70,13 +70,13 @@ onKeyPress(PuglView* view, const PuglKeyEvent* event) app->quit = 1; } else if (event->state & PUGL_MOD_SHIFT) { if (event->key == PUGL_KEY_UP) { - puglSetSize(view, frame.width, frame.height - 10u); + puglSetSize(view, frame.width, frame.height - 10U); } else if (event->key == PUGL_KEY_DOWN) { - puglSetSize(view, frame.width, frame.height + 10u); + puglSetSize(view, frame.width, frame.height + 10U); } else if (event->key == PUGL_KEY_LEFT) { - puglSetSize(view, frame.width - 10u, frame.height); + puglSetSize(view, frame.width - 10U, frame.height); } else if (event->key == PUGL_KEY_RIGHT) { - puglSetSize(view, frame.width + 10u, frame.height); + puglSetSize(view, frame.width + 10U, frame.height); } } else { if (event->key == PUGL_KEY_UP) { @@ -187,8 +187,8 @@ main(int argc, char** argv) puglSetWindowTitle(view, "Pugl Window Demo"); puglSetPosition(view, - (PuglCoord)(pad + (128u + pad) * i), - (PuglCoord)(pad + (128u + pad) * i)); + (PuglCoord)(pad + (128U + pad) * i), + (PuglCoord)(pad + (128U + pad) * i)); puglSetSizeHint(view, PUGL_DEFAULT_SIZE, 512, 512); puglSetSizeHint(view, PUGL_MIN_SIZE, 128, 128); |