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_gl3_demo.c | |
parent | 6c870cb0d2cae098d7780d7aaaf1815887ef182e (diff) |
Strengthen warnings
Diffstat (limited to 'examples/pugl_gl3_demo.c')
-rw-r--r-- | examples/pugl_gl3_demo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/pugl_gl3_demo.c b/examples/pugl_gl3_demo.c index 3a9503c..c49ed3d 100644 --- a/examples/pugl_gl3_demo.c +++ b/examples/pugl_gl3_demo.c @@ -138,14 +138,14 @@ onExpose(PuglView* view) const float offset[2] = {normal * 128.0f, normal * 128.0f}; // Move rect around in an arbitrary way that looks cool - rect->pos[0] = - (float)(width - rect->size[0] + offset[0]) * - (sinf((float)time * rect->size[0] / 64.0f + normal) + 1.0f) / - 2.0f; - rect->pos[1] = - (float)(height - rect->size[1] + offset[1]) * - (cosf((float)time * rect->size[1] / 64.0f + normal) + 1.0f) / - 2.0f; + rect->pos[0] = (width - rect->size[0] + offset[0]) * + (sinf((float)time * rect->size[0] / 64.0f + normal) + + 1.0f) / + 2.0f; + rect->pos[1] = (height - rect->size[1] + offset[1]) * + (cosf((float)time * rect->size[1] / 64.0f + normal) + + 1.0f) / + 2.0f; } glBufferSubData(GL_ARRAY_BUFFER, |