aboutsummaryrefslogtreecommitdiff
path: root/examples/pugl_window_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_window_demo.c')
-rw-r--r--examples/pugl_window_demo.c9
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) {