[windows] get animate demo working

This commit is contained in:
nick black 2021-11-11 21:13:17 -05:00
parent 7f7edcce87
commit c514d2a01c

View File

@ -143,11 +143,11 @@ spin_cycle(const char* utf8, int iters){
return offsets[iters % o];
}
if(o == sizeof(offsets) / sizeof(*offsets)){
break;
return offsets[iters % o]; // FIXME?
}
offsets[o] = offset;
offset += s;
if(++o == iters){
if(o++ == iters){
return offsets[iters % o];
}
}