From 5505546d5c6b199561107b7786ee8c0dc21a0c9a Mon Sep 17 00:00:00 2001 From: Peter Rolfe <30848697+pjhrolfe@users.noreply.github.com> Date: Sun, 21 May 2023 23:29:56 +0100 Subject: [PATCH] Fixed incorrect indentation in SDL_Renderer example --- Image-Loading-and-Displaying-Examples.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Image-Loading-and-Displaying-Examples.md b/Image-Loading-and-Displaying-Examples.md index d7aa824..b4b9928 100644 --- a/Image-Loading-and-Displaying-Examples.md +++ b/Image-Loading-and-Displaying-Examples.md @@ -574,9 +574,8 @@ bool LoadTextureFromFile(const char* filename, SDL_Texture** texture_ptr, int& w We can then load our texture after initialising SDL: ```cpp SDL_Texture* my_texture; - int my_image_width, my_image_height; - - bool ret = LoadTextureFromFile("MyImage01.jpg", &my_texture, my_image_width, my_image_height, renderer); +int my_image_width, my_image_height; +bool ret = LoadTextureFromFile("MyImage01.jpg", &my_texture, my_image_width, my_image_height, renderer); ``` And finally, use the image with Dear ImGui: