You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Disable fseeko64 for DJGPP due to broken implementation
- Refactor DOS timer delay to always yield and avoid busy-waiting
- Fix animated cursor rendering in DOS VESA backend
- Always set display mode when creating DOS VESA window
- Work around DJGPP allowing invalid file access in testfile.c
- Bump max threads to 16
- Apply workarounds for threading tests
if (is_noop||fseek(iodata->fp, (fseek_off_t)offset, stdiowhence) ==0) {
754
-
#ifdefSDL_PLATFORM_DOS// DJGPP libc bug: fseek doesn't invalidate the read buffer, so subsequent reads return stale data. Flush and recreate the buffer as a workaround.
755
-
setvbuf(iodata->fp, NULL, _IONBF, 0);
756
-
setvbuf(iodata->fp, NULL, _IOFBF, 16*1024);
757
-
#endif
758
754
constSint64pos=ftell(iodata->fp);
759
755
if (pos<0) {
760
756
SDL_SetError("Couldn't get stream offset: %s", strerror(errno));
0 commit comments