menu_view: support labels with no background

By applying the text output to the alpha buffer in addition to the pixel
buffer, labels can now appear without the need for an underlying frame
or button.
This commit is contained in:
Norman Feske 2017-08-15 13:41:38 +02:00 committed by Christian Helmuth
parent 4ca493b762
commit f073c51b49

View File

@ -63,6 +63,9 @@ struct Menu_view::Label_widget : Widget
Text_painter::paint(pixel_surface, at + centered, *font,
Color(0, 0, 0), text.string());
Text_painter::paint(alpha_surface, at + centered, *font,
Color(255, 255, 255), text.string());
}
};