negative modulo blah

This commit is contained in:
Joshua Ashton 2023-11-06 21:54:40 +00:00
parent 70014f32ec
commit cf02abd800
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ int main(int argc, char** argv)
r_window->EnableRelativeMouse(false);
int32_t currentImageIdx = 0;
uint32_t currentImageIdx = 0;
auto t1 = Time::now();
auto startTime = Time::now();
uint32_t frameCounter = 0;
@ -319,7 +319,7 @@ int main(int argc, char** argv)
else if (handler.getFirst(Input::ButtonCodes::Key_Left))
currentImageIdx--;
currentImageIdx = currentImageIdx % totalImageCount;
currentImageIdx = (currentImageIdx + totalImageCount) % totalImageCount;
bool currentImageIsHDR = imageIsHDR[currentImageIdx];