From 0d20abf5cf6da365743234482ef6fc81f086ec87 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 9 May 2021 23:22:38 +0200 Subject: [PATCH] rate-banner: fix typos Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/714341098b6213a42684a5696c47d785a44b1158 Author: vanhofen Date: 2021-05-09 (Sun, 09 May 2021) Origin message was: ------------------ - rate-banner: fix typos --- src/gui/rate_banner.cpp | 28 ++++++++++++++-------------- src/gui/rate_banner.h | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/gui/rate_banner.cpp b/src/gui/rate_banner.cpp index 9a88ea975..da787b1ba 100644 --- a/src/gui/rate_banner.cpp +++ b/src/gui/rate_banner.cpp @@ -52,32 +52,32 @@ CRateBanner::~CRateBanner() void CRateBanner::init(const std::string& quote_icon, const std::string& quote_icon_bg, const float& quote, const float& quote_max, const std::string& provider_logo) { - cc_item_type.name = "rate_banner"; - append_x_offset = OFFSET_INNER_MIN; - paint_bg = false; - rat_prov_logo = provider_logo; - rat_icon = quote_icon; - rat_icon_bg = quote_icon_bg; + cc_item_type.name = "rate_banner"; + append_x_offset = OFFSET_INNER_MIN; + paint_bg = false; + rate_prov_logo = provider_logo; + rate_icon = quote_icon; + rate_icon_bg = quote_icon_bg; rate = quote; - rat_max = quote_max; + rate_max = quote_max; } void CRateBanner::paint(const bool &do_save_bg) { clear(); - addIcon(rat_prov_logo); - addIcons(rat_icon, rat_max); + addIcon(rate_prov_logo); + addIcons(rate_icon, rate_max); paintForm(do_save_bg); - int x_base = getCCItem(rat_icon)->getRealXPos(); - float w_rate_space = static_cast(width - (getCCItem(rat_prov_logo) ? getCCItem(rat_prov_logo)->getWidth() - append_x_offset : 0)); - float w_rate_size = w_rate_space / rat_max * rate; + int x_base = getCCItem(rate_icon)->getRealXPos(); + float w_rate_space = static_cast(width - (getCCItem(rate_prov_logo) ? getCCItem(rate_prov_logo)->getWidth() - append_x_offset : 0)); + float w_rate_size = w_rate_space / rate_max * rate; int w_tmp = static_cast(round(w_rate_size)) - append_x_offset; fb_pixel_t* pixbuf = getScreen(x_base, y, w_tmp, height); removeAllIcons(); - addIcon(rat_prov_logo); - addIcons(rat_icon_bg, rat_max); + addIcon(rate_prov_logo); + addIcons(rate_icon_bg, rate_max); paintCCItems(); if (pixbuf) diff --git a/src/gui/rate_banner.h b/src/gui/rate_banner.h index 8cccf82e8..df13c3cba 100644 --- a/src/gui/rate_banner.h +++ b/src/gui/rate_banner.h @@ -34,8 +34,8 @@ class CRateBanner : public CComponentsIconForm { private: - std::string rat_icon, rat_icon_bg, rat_prov_logo; - float rate, rat_max; + std::string rate_icon, rate_icon_bg, rate_prov_logo; + float rate, rate_max; void init( const std::string& quote_icon, const std::string& quote_icon_bg,