Sfoglia il codice sorgente

Fix format string in debug-text example

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
williamist 4 mesi fa
parent
commit
6abebca943
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/renderer/18-debug-text/debug-text.c

+ 1 - 1
examples/renderer/18-debug-text/debug-text.c

@@ -63,7 +63,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
     SDL_SetRenderScale(renderer, 1.0f, 1.0f);
     SDL_RenderDebugText(renderer, 64, 350, "This only does ASCII chars. So this laughing emoji won't draw: 🤣");
 
-    SDL_RenderDebugTextF(renderer, 0, 0, "This program has been running for %llu seconds.", SDL_GetTicks() / 1000);
+    SDL_RenderDebugTextF(renderer, 0, 0, "This program has been running for %" SDL_PRIu64 " seconds.", SDL_GetTicks() / 1000);
 
     SDL_RenderPresent(renderer);  /* put it all on the screen! */