# HG changeset patch # User Wuzzy # Date 1554239671 -7200 # Node ID 7dfc6ed13337cae8bf42784cf2d9bfa50582f972 # Parent a8a328ac3cac1566d627391d53165f2ff11aeaec Fix uninitialized alpha values of rendered text diff -r a8a328ac3cac -r 7dfc6ed13337 hedgewars/uRenderUtils.pas --- a/hedgewars/uRenderUtils.pas Tue Apr 02 22:57:46 2019 +0200 +++ b/hedgewars/uRenderUtils.pas Tue Apr 02 23:14:31 2019 +0200 @@ -106,6 +106,7 @@ clr.r:= (Color shr 16) and $FF; clr.g:= (Color shr 8) and $FF; clr.b:= Color and $FF; + clr.a:= $FF; if (not IsTooDarkToRead(Color)) then DrawRoundRect(@finalRect, cWhiteColor, cNearBlackColor, Surface, true) else diff -r a8a328ac3cac -r 7dfc6ed13337 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Tue Apr 02 22:57:46 2019 +0200 +++ b/hedgewars/uStore.pas Tue Apr 02 23:14:31 2019 +0200 @@ -113,6 +113,7 @@ clr.r:= Color shr 16; clr.g:= (Color shr 8) and $FF; clr.b:= Color and $FF; +clr.a:= $FF; tmpsurf:= TTF_RenderUTF8_Blended(Fontz[Font].Handle, s, clr); if tmpsurf = nil then exit; tmpsurf:= doSurfaceConversion(tmpsurf);