From a92d9807237a024106b67f045822679f7ee4df54 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sat, 14 Mar 2009 21:18:50 +0000 Subject: merge with current trunk (just update) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1634 b956fd51-792f-4845-bead-9b4dfca2ff2c --- unicode/src/menu/UMenuBackgroundColor.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unicode/src/menu/UMenuBackgroundColor.pas') diff --git a/unicode/src/menu/UMenuBackgroundColor.pas b/unicode/src/menu/UMenuBackgroundColor.pas index 68cf2de4..a5c2a70a 100644 --- a/unicode/src/menu/UMenuBackgroundColor.pas +++ b/unicode/src/menu/UMenuBackgroundColor.pas @@ -52,7 +52,8 @@ type implementation uses gl, - glext; + glext, + UGraphic; constructor TMenuBackgroundColor.Create(const ThemedSettings: TThemeBackground); begin @@ -62,8 +63,11 @@ end; procedure TMenuBackgroundColor.Draw; begin + if (ScreenAct = 1) then + begin //just clear once, even when using two screens glClearColor(Color.R, Color.G, Color.B, 0); glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); + end; end; end. \ No newline at end of file -- cgit v1.2.3