aboutsummaryrefslogtreecommitdiffstats
path: root/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-29 18:10:46 +0000
committerDavid Robillard <d@drobilla.net>2012-04-29 18:10:46 +0000
commitd9732fbc106a6ac228912078888fbac65e78d26d (patch)
treed0b8c8f11c7cdcf8d117f853d680e4fa706d2a99 /pugl_test.c
parentd4b2829de83ca5f0efd3d1ee2683ee400e63ffe2 (diff)
downloadpugl-d9732fbc106a6ac228912078888fbac65e78d26d.tar.gz
pugl-d9732fbc106a6ac228912078888fbac65e78d26d.tar.bz2
pugl-d9732fbc106a6ac228912078888fbac65e78d26d.zip
Scroll support on Windows.
Diffstat (limited to 'pugl_test.c')
-rw-r--r--pugl_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl_test.c b/pugl_test.c
index 57b9e5e..05efa61 100644
--- a/pugl_test.c
+++ b/pugl_test.c
@@ -110,9 +110,9 @@ onMouse(PuglWindow* win, int button, bool press, int x, int y)
}
static void
-onScroll(PuglWindow* win, int dx, int dy)
+onScroll(PuglWindow* win, float dx, float dy)
{
- fprintf(stderr, "Scroll %d %d\n", dx, dy);
+ fprintf(stderr, "Scroll %f %f\n", dx, dy);
dist += dy / 4.0f;
puglPostRedisplay(win);
}