aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/menuBackground.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/menuBackground.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/menu/menuBackground.cpp b/src/menu/menuBackground.cpp
index 430ff0d1..819eef5b 100644
--- a/src/menu/menuBackground.cpp
+++ b/src/menu/menuBackground.cpp
@@ -37,4 +37,18 @@ namespace usdx
if (screen_act == 0)
glClear(GL_DEPTH_BUFFER_BIT);
}
+
+ MenuBackgroundColor::MenuBackgrundColor(RGB &color)
+ {
+ this->color = color;
+ }
+
+ void MenuBackgroundColor::draw(void)
+ {
+ // just clear once, even when using two screens
+ if (screen_act == 1) {
+ glClearColor(color.r, color.g, color.b, 0);
+ glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);
+ }
+ }
};