diff options
Diffstat (limited to 'examples/rects.h')
-rw-r--r-- | examples/rects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rects.h b/examples/rects.h index 0a7e5fa..f760226 100644 --- a/examples/rects.h +++ b/examples/rects.h @@ -70,7 +70,7 @@ moveRect(Rect* const rect, const float frameHeight, const double time) { - const float normal = index / (float)numRects; + const float normal = (float)index / (float)numRects; const float offset[2] = {normal * 128.0f, normal * 128.0f}; rect->pos[0] = (frameWidth - rect->size[0] + offset[0]) * |