fixes incorrect comment in viewport example

This commit is contained in:
Jamibaraki
2026-08-13 15:20:16 +09:00
committed by Ryan C. Gordon
parent d4440c0446
commit b669ac244e

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;