From ac97da94cba1b0561b80be83d9cf68b542c686cc Mon Sep 17 00:00:00 2001 From: sechshelme <30811238+sechshelme@users.noreply.github.com> Date: Sun, 5 May 2024 14:32:38 +0000 Subject: [PATCH] SDL3/SDL_GetWindowSurface: Updated. Live page is here: https://wiki.libsdl.org/SDL3/SDL_GetWindowSurface --- SDL3/SDL_GetWindowSurface.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL3/SDL_GetWindowSurface.md b/SDL3/SDL_GetWindowSurface.md index 7e5e707ac..bb86b6714 100644 --- a/SDL3/SDL_GetWindowSurface.md +++ b/SDL3/SDL_GetWindowSurface.md @@ -50,14 +50,14 @@ This function is available since SDL 3.0.0. int main(int argc, char* argv[]) { - SDL_Surface *screen; // even with SDL2, we can still bring ancient code back + SDL_Surface *screen; // even with SDL3, we can still bring ancient code back SDL_Window *window; SDL_Surface *image; SDL_Init(SDL_INIT_VIDEO); // init video // create the window like normal - window = SDL_CreateWindow("SDL2 Example", 640, 480, 0); + window = SDL_CreateWindow("SDL3 Surface Example", 640, 480, 0); // but instead of creating a renderer, we can draw directly to the screen screen = SDL_GetWindowSurface(window);