fixes incorrect comment in viewport example

This commit is contained in:
Jamibaraki
2026-08-14 21:21:39 -04:00
committed by Ryan C. Gordon
parent d4440c0446
commit b669ac244e
+1 -1
View File
@@ -98,7 +98,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
SDL_SetRenderViewport(renderer, NULL); /* NULL means "use the whole window" */
SDL_RenderTexture(renderer, texture, NULL, &dst_rect);
/* top right quarter of the window. */
/* bottom right quarter of the window. */
viewport.x = WINDOW_WIDTH / 2;
viewport.y = WINDOW_HEIGHT / 2;
viewport.w = WINDOW_WIDTH / 2;