diff options
author | David Robillard <d@drobilla.net> | 2020-04-02 17:39:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-02 17:40:56 +0200 |
commit | ffa9c8240e4d904da2154466e811302ae313034d (patch) | |
tree | 4f4618b267e91b0c575512087fa264cd923e8e3f /examples/pugl_window_demo.c | |
parent | 6c870cb0d2cae098d7780d7aaaf1815887ef182e (diff) | |
download | pugl-ffa9c8240e4d904da2154466e811302ae313034d.tar.gz pugl-ffa9c8240e4d904da2154466e811302ae313034d.tar.bz2 pugl-ffa9c8240e4d904da2154466e811302ae313034d.zip |
Strengthen warnings
Diffstat (limited to 'examples/pugl_window_demo.c')
-rw-r--r-- | examples/pugl_window_demo.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 6af9e5a..183119c 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -63,7 +63,11 @@ onDisplay(PuglView* view) cube->yAngle = fmod(cube->yAngle + dTime * 100.0, 360.0); } - displayCube(view, cube->dist, cube->xAngle, cube->yAngle, cube->entered); + displayCube(view, + cube->dist, + (float)cube->xAngle, + (float)cube->yAngle, + cube->entered); cube->lastDrawTime = thisTime; } @@ -126,7 +130,8 @@ onEvent(PuglView* view, const PuglEvent* event) switch (event->type) { case PUGL_CONFIGURE: - reshapeCube((int)event->configure.width, (int)event->configure.height); + reshapeCube((float)event->configure.width, + (float)event->configure.height); break; case PUGL_UPDATE: if (app->continuous) { |