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 @@