From b3679ce1e557e282130fdf6a0161c5f1bded16f3 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 15 Feb 2021 16:21:27 -0800 Subject: [PATCH] Fix brace style of Graphics::font_idx() This really should be next-line brace, as is (most of) the rest of the codebase. --- desktop_version/src/Graphics.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index dc86a664..9787d07c 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -243,18 +243,24 @@ void Graphics::destroy_buffers() #undef FREE_SURFACE } -int Graphics::font_idx(uint32_t ch) { - if (font_positions.size() > 0) { +int Graphics::font_idx(uint32_t ch) +{ + if (font_positions.size() > 0) + { std::map::iterator iter = font_positions.find(ch); - if (iter == font_positions.end()) { + if (iter == font_positions.end()) + { iter = font_positions.find('?'); - if (iter == font_positions.end()) { + if (iter == font_positions.end()) + { puts("font.txt missing fallback character!"); exit(1); } } return iter->second; - } else { + } + else + { return ch; } }