X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameobjs.cpp;h=5340bfb57b31712ce8c70592b46490391501aa3e;hb=e4db6eb50cd6bcba607858b5e6c4c5d53531ed1f;hp=1ace86caaae395ad34fb3071ba73951f6a113f0f;hpb=3e184f18f1b19c8884d3899f20eeda37a2916290;p=supertux.git diff --git a/src/gameobjs.cpp b/src/gameobjs.cpp index 1ace86caa..5340bfb57 100644 --- a/src/gameobjs.cpp +++ b/src/gameobjs.cpp @@ -155,7 +155,12 @@ FloatingText::draw(DrawingContext& context) else alpha = 255; - context.draw_text(gold_text, text, position, LEFT_ALLIGN, LAYER_OBJECTS, NONE_EFFECT, alpha); + context.push_transform(); + context.set_alpha(alpha); + + context.draw_text(gold_text, text, position, LEFT_ALLIGN, LAYER_OBJECTS+1); + + context.pop_transform(); } /* Trampoline */