summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/animated.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/animated.cxx b/test/animated.cxx
index e7f8ea793..15dde5d68 100644
--- a/test/animated.cxx
+++ b/test/animated.cxx
@@ -87,9 +87,9 @@ static void make_images() {
// A moving blob
const float pos = (i / (float) frames) * 2 - 0.5f;
- const int xoffset = int(pos * DIM);
- const int yoffset = 2 * DIM / 3;
- const int w = DIM / 4;
+ const int xoffset = int(pos * dim);
+ const int yoffset = 2 * dim / 3;
+ const int w = dim / 4;
for (x = -w; x < w; x++) {
if (x + xoffset < 0 || x + xoffset >= (int)dim)