From 0f70fd045091f1ff720d3028615888df39d01e45 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 25 Jan 2018 13:30:14 +0100 Subject: [PATCH] libtuxtxt: move overloaded members directly to the matching functions Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/88fcd8bf8dd3dbf68bfa19f8ff1df407b8d7128b Author: vanhofen Date: 2018-01-25 (Thu, 25 Jan 2018) Origin message was: ------------------ - libtuxtxt: move overloaded members directly to the matching functions ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- lib/libtuxtxt/tuxtxt.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/libtuxtxt/tuxtxt.cpp b/lib/libtuxtxt/tuxtxt.cpp index ad9ac61a5..95a304a91 100644 --- a/lib/libtuxtxt/tuxtxt.cpp +++ b/lib/libtuxtxt/tuxtxt.cpp @@ -47,9 +47,6 @@ static int cfg_national_subset; static int screen_x, screen_y, screen_w, screen_h; -void FillRect(int x, int y, int w, int h, fb_pixel_t color, bool modeFullColor=false); -void FillBorder(fb_pixel_t color, bool modeFullColor=false); - fb_pixel_t *getFBp(int *y) { if (*y < (int)var_screeninfo.yres) @@ -59,7 +56,8 @@ fb_pixel_t *getFBp(int *y) return lbb; } -void FillRect(int x, int y, int w, int h, fb_pixel_t color, bool modeFullColor/*=false*/) +void FillRect(int x, int y, int w, int h, fb_pixel_t color, bool modeFullColor = false); +void FillRect(int x, int y, int w, int h, fb_pixel_t color, bool modeFullColor) { fb_pixel_t *p = getFBp(&y); MARK_FB(x, y, w, h); @@ -75,7 +73,8 @@ void FillRect(int x, int y, int w, int h, fb_pixel_t color, bool modeFullColor/* } } -void FillBorder(fb_pixel_t color, bool modeFullColor/*=false*/) +void FillBorder(fb_pixel_t color, bool modeFullColor = false); +void FillBorder(fb_pixel_t color, bool modeFullColor) { int ys = (var_screeninfo.yres-var_screeninfo.yoffset); FillRect(0 , ys ,StartX ,var_screeninfo.yres ,color, modeFullColor);