adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-commits] master 97fb245 1/2: FIXED alpha channel of font colo


From: Kai Sterker
Subject: [adonthell-commits] master 97fb245 1/2: FIXED alpha channel of font color not being initialized correctly
Date: Sun, 1 Oct 2017 14:17:54 -0400 (EDT)

branch: master
commit 97fb24529278dc7e22bf8c9be032a134c4189cc7
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>

    FIXED alpha channel of font color not being initialized correctly
---
 src/win_ttf.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/win_ttf.cc b/src/win_ttf.cc
index bb92511..ef84eff 100644
--- a/src/win_ttf.cc
+++ b/src/win_ttf.cc
@@ -51,7 +51,8 @@ win_ttf::win_ttf (const char *color, const string & file) : 
win_font ()
             Color.r = 255; Color.g = 255; Color.b = 255;
             break;
     }
-        
+    
+    Color.a = SDL_ALPHA_OPAQUE;
     refcount++;
     
     if (load (file))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]