From 55b2a3aac2ba5b40c49499807bd1ee39f52c8f12 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 11 Jun 2020 17:55:27 -0700 Subject: [PATCH] Indent Graphics::reloadresources() with tabs This is to respect the fact that the top half of the file is indented with spaces, while the bottom half is indented with tabs. Graphics::reloadresources() is on the bottom half. --- desktop_version/src/Graphics.cpp | 76 ++++++++++++++++---------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 0be484d1..874a617e 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2822,50 +2822,50 @@ bool Graphics::onscreen(int t) } void Graphics::reloadresources() { - grphx.destroy(); - grphx = GraphicsResources(); - grphx.init(); + grphx.destroy(); + grphx = GraphicsResources(); + grphx.init(); - #define CLEAR_ARRAY(name) \ - for (size_t i = 0; i < name.size(); i += 1) \ - { \ - SDL_FreeSurface(name[i]); \ - } \ - name.clear(); + #define CLEAR_ARRAY(name) \ + for (size_t i = 0; i < name.size(); i += 1) \ + { \ + SDL_FreeSurface(name[i]); \ + } \ + name.clear(); - CLEAR_ARRAY(tiles) - CLEAR_ARRAY(tiles2) - CLEAR_ARRAY(tiles3) - CLEAR_ARRAY(entcolours) - CLEAR_ARRAY(sprites) - CLEAR_ARRAY(flipsprites) - CLEAR_ARRAY(tele) - CLEAR_ARRAY(bfont) - CLEAR_ARRAY(flipbfont) + CLEAR_ARRAY(tiles) + CLEAR_ARRAY(tiles2) + CLEAR_ARRAY(tiles3) + CLEAR_ARRAY(entcolours) + CLEAR_ARRAY(sprites) + CLEAR_ARRAY(flipsprites) + CLEAR_ARRAY(tele) + CLEAR_ARRAY(bfont) + CLEAR_ARRAY(flipbfont) - #undef CLEAR_ARRAY + #undef CLEAR_ARRAY - MakeTileArray(); - MakeSpriteArray(); - maketelearray(); - Makebfont(); + MakeTileArray(); + MakeSpriteArray(); + maketelearray(); + Makebfont(); - images.clear(); + images.clear(); - images.push_back(grphx.im_image0); - images.push_back(grphx.im_image1); - images.push_back(grphx.im_image2); - images.push_back(grphx.im_image3); - images.push_back(grphx.im_image4); - images.push_back(grphx.im_image5); - images.push_back(grphx.im_image6); + images.push_back(grphx.im_image0); + images.push_back(grphx.im_image1); + images.push_back(grphx.im_image2); + images.push_back(grphx.im_image3); + images.push_back(grphx.im_image4); + images.push_back(grphx.im_image5); + images.push_back(grphx.im_image6); - images.push_back(grphx.im_image7); - images.push_back(grphx.im_image8); - images.push_back(grphx.im_image9); - images.push_back(grphx.im_image10); - images.push_back(grphx.im_image11); - images.push_back(grphx.im_image12); + images.push_back(grphx.im_image7); + images.push_back(grphx.im_image8); + images.push_back(grphx.im_image9); + images.push_back(grphx.im_image10); + images.push_back(grphx.im_image11); + images.push_back(grphx.im_image12); - music.init(); + music.init(); }