Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-23 19:16:28 +0200
committerStijn Buys <ingar@osirion.org>2016-07-23 19:16:28 +0200
commitb6e20e04b519e50909331f537df2ea6114a137ee (patch)
treeaf49c890160dd5b96b992ff9e95bc44830955c3a /src/ui/bitmap.cc
parent0d3a65aad03d9ac726238b21ba8224e9558a8a08 (diff)
General ui code improvements, moved layout related variables to ui::UI,
added ColorPicker widget.
Diffstat (limited to 'src/ui/bitmap.cc')
-rw-r--r--src/ui/bitmap.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/bitmap.cc b/src/ui/bitmap.cc
index 5caf966..6befa3a 100644
--- a/src/ui/bitmap.cc
+++ b/src/ui/bitmap.cc
@@ -58,6 +58,10 @@ void Bitmap::draw_background()
{
if (bitmap_texture.size()) {
Paint::draw_bitmap(global_location(), size(), bitmap_color, bitmap_texture, bitmap_preserve_aspect);
+ } else {
+ Paint::set_color(bitmap_color);
+ Paint::draw_rectangle(global_location(), size());
+ Paint::set_color(palette()->foreground());
}
}