From 4b8df8f151d92061492f0a83f4ae026d9dd9804f Mon Sep 17 00:00:00 2001 From: Stefan Arentz Date: Fri, 30 Dec 2016 09:12:08 -0800 Subject: [PATCH] Small compilation fix for GCC 5.4 --- src/scr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scr.c b/src/scr.c index 31df21d..686681c 100644 --- a/src/scr.c +++ b/src/scr.c @@ -189,7 +189,7 @@ static SDL_Color hgr_colors[16] = { { 255, 255, 255, 0 } // 5 White }; -static void inline scr_render_hgr_line_green(struct scr_t *scr, int line, uint16_t line_base) { +inline static void scr_render_hgr_line_green(struct scr_t *scr, int line, uint16_t line_base) { int x = 0; for (int i = 0; i < 40; i++) { uint8_t c = scr->two->screen_hgr_data[line_base + i]; @@ -210,7 +210,7 @@ static void inline scr_render_hgr_line_green(struct scr_t *scr, int line, uint16 } } -static void inline scr_render_hgr_line_color(struct scr_t *scr, int line, uint16_t line_base) { +inline static void scr_render_hgr_line_color(struct scr_t *scr, int line, uint16_t line_base) { // Pre process the line. We put the color index in bytes to make it easier to handle them @@ -262,7 +262,7 @@ static void inline scr_render_hgr_line_color(struct scr_t *scr, int line, uint16 } } -static void inline scr_render_hgr_screen(struct scr_t *scr, bool flash) { +inline static void scr_render_hgr_screen(struct scr_t *scr, bool flash) { // Render graphics int lines = (scr->two->screen_graphics_style == EWM_A2P_SCREEN_GRAPHICS_STYLE_MIXED) ? 160 : 192; uint16_t hgr_base = hgr_page_offsets[scr->two->screen_page];