From 19400aafde019e281e1605556a710826532daca1 Mon Sep 17 00:00:00 2001 From: dessant Date: Thu, 18 Feb 2016 11:29:30 +0200 Subject: [PATCH] fix label color handling --- kivy/core/text/_text_sdl2.pyx | 4 ++-- kivy/data/style.kv | 4 ++-- kivy/uix/label.py | 20 +++++++------------- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/kivy/core/text/_text_sdl2.pyx b/kivy/core/text/_text_sdl2.pyx index f637d9728..02764b67d 100644 --- a/kivy/core/text/_text_sdl2.pyx +++ b/kivy/core/text/_text_sdl2.pyx @@ -93,8 +93,8 @@ cdef class _SurfaceContainer: r.y = y r.w = st.w r.h = st.h - SDL_SetSurfaceAlphaMod(st, 0xff); - SDL_SetSurfaceBlendMode(st, SDL_BLENDMODE_NONE); + SDL_SetSurfaceAlphaMod(st, (color[3] * 255)) + SDL_SetSurfaceBlendMode(st, SDL_BLENDMODE_NONE) SDL_BlitSurface(st, NULL, self.surface, &r) SDL_FreeSurface(st) diff --git a/kivy/data/style.kv b/kivy/data/style.kv index b9c0fb015..1f8b2e376 100644 --- a/kivy/data/style.kv +++ b/kivy/data/style.kv @@ -3,7 +3,7 @@