negative modulo blah
This commit is contained in:
parent
70014f32ec
commit
cf02abd800
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue