aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-07 15:19:39 -0400
committerDavid Robillard <d@drobilla.net>2022-10-07 15:22:43 -0400
commit17d90bda87dd445a974de7e644629593ade617d8 (patch)
tree319a23c713a4d089863d9c169d63a1d2d413521c /examples/pugl_embed_demo.c
parented4c8a50505ab02a8f3a01e41f5f86acca04b81d (diff)
downloadpugl-17d90bda87dd445a974de7e644629593ade617d8.tar.gz
pugl-17d90bda87dd445a974de7e644629593ade617d8.tar.bz2
pugl-17d90bda87dd445a974de7e644629593ade617d8.zip
Use uppercase integer literal suffixes
Diffstat (limited to 'examples/pugl_embed_demo.c')
-rw-r--r--examples/pugl_embed_demo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c
index 9f93287..94310a5 100644
--- a/examples/pugl_embed_demo.c
+++ b/examples/pugl_embed_demo.c
@@ -12,8 +12,8 @@
#include <stdbool.h>
#include <stdint.h>
-static const uint8_t borderWidth = 64u;
-static const uintptr_t reverseTimerId = 1u;
+static const uint8_t borderWidth = 64U;
+static const uintptr_t reverseTimerId = 1U;
typedef struct {
PuglWorld* world;
@@ -109,13 +109,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) {