diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-07 08:20:21 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-07 08:20:21 +0300 |
commit | c9ace44ca8abca62ece0012362b94b115be65e1b (patch) | |
tree | 15977dc32eec7d9caed71b9d59001d6a01463f3f /src | |
parent | 4fc2f9c359781fabe182fec88444ad540125fd40 (diff) |
CFont
Diffstat (limited to 'src')
-rw-r--r-- | src/render/Font.cpp | 6 | ||||
-rw-r--r-- | src/render/Font.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp index 0544a1b9..231008c4 100644 --- a/src/render/Font.cpp +++ b/src/render/Font.cpp @@ -1049,13 +1049,13 @@ CFont::SetScale(float x, float y) }
void
-CFont::SetBackgroundColor(CRGBA col)
+CFont::SetBackgroundColor(const CRGBA &col)
{
Details.backgroundColor = col;
}
void
-CFont::SetColor(CRGBA col)
+CFont::SetColor(const CRGBA &col)
{
Details.color = col;
if (Details.alphaFade < 255.0f)
@@ -1063,7 +1063,7 @@ CFont::SetColor(CRGBA col) }
void
-CFont::SetDropColor(CRGBA col)
+CFont::SetDropColor(const CRGBA &col)
{
Details.dropColor = col;
if (Details.alphaFade < 255.0f)
diff --git a/src/render/Font.h b/src/render/Font.h index 8e7ae16a..5218e426 100644 --- a/src/render/Font.h +++ b/src/render/Font.h @@ -154,9 +154,9 @@ public: static void SetRightJustifyWrap(float wrap) { Details.rightJustifyWrap = wrap; } static void SetAlphaFade(float fade) { Details.alphaFade = fade; } static void SetDropShadowPosition(int16 pos) { Details.dropShadowPosition = pos; } - static void SetBackgroundColor(CRGBA col); - static void SetColor(CRGBA col); - static void SetDropColor(CRGBA col); + static void SetBackgroundColor(const CRGBA &col); + static void SetColor(const CRGBA &col); + static void SetDropColor(const CRGBA &col); #ifdef MORE_LANGUAGES static void ReloadFonts(uint8 set); |