# HG changeset patch # User Matti Hamalainen # Date 1572346285 -7200 # Node ID 2d2aadfa3df35f18e6bb2a926edf7020c3442d6b # Parent 62be2036f60474b481153920625f60c455c3e577 Fix calculation of totalFrames. diff -r 62be2036f604 -r 2d2aadfa3df3 glxdragon.cpp --- a/glxdragon.cpp Tue Oct 29 12:48:36 2019 +0200 +++ b/glxdragon.cpp Tue Oct 29 12:51:25 2019 +0200 @@ -589,10 +589,10 @@ glRotatef(2.0f, 0, 1, 0); // Return true if a full rotation was done + totalFrames++; if (cycleFrames++ == SET_FRAMES) { // Reset cycleFrames - totalFrames += cycleFrames; cycleFrames = 0; // Get the time it took to render a full turn