Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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());
}
}