mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-17 09:21:59 +08:00
fixes incorrect comment in viewport example
This commit is contained in:
committed by
Ryan C. Gordon
parent
d4440c0446
commit
b669ac244e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user