aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-07 20:17:42 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-07 20:17:42 +0000
commit994ff6bfd803edd76f45e7b2e083c2bbd06e0cf3 (patch)
tree3f23f5926837ae24881693bbc5f653c9efd4d1f5 /Game/Code/Classes
parent5909032b4d93acc5e2ff4e715f256c3349f456fa (diff)
downloadusdx-994ff6bfd803edd76f45e7b2e083c2bbd06e0cf3.tar.gz
usdx-994ff6bfd803edd76f45e7b2e083c2bbd06e0cf3.tar.xz
usdx-994ff6bfd803edd76f45e7b2e083c2bbd06e0cf3.zip
- fixed "vista-no-mic-leads-to-crash" bug
- better fading texture handling - fixed black video background on second screen in song menu - "Blue Sensation" as default theme git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2224 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes')
-rw-r--r--Game/Code/Classes/UIni.pas6
-rw-r--r--Game/Code/Classes/UVideo.pas26
2 files changed, 21 insertions, 11 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas
index e5891f58..37258a44 100644
--- a/Game/Code/Classes/UIni.pas
+++ b/Game/Code/Classes/UIni.pas
@@ -428,7 +428,7 @@ begin
//Theme List Patch
- //I2 Saves the no of the Deluxe (Standard-) Theme
+ //I2 Saves the no of the (Standard-) Theme
I2 := 0;
//I counts is the cur. Theme no
I := 0;
@@ -441,8 +441,8 @@ begin
Tekst := UpperCase(ThemeIni.ReadString('Theme','Name',GetFileName(SR.Name)));
ThemeIni.Free;
- //if Deluxe Theme then save Themeno to I2
- if (Tekst = 'DELUXE') then
+ //if Default Theme then save Themeno to I2
+ if (Tekst = 'Blue Sensation') then
I2 := I;
//Search for Skins for this Theme
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index b37166c1..9e04a8ec 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -767,14 +767,23 @@ var
begin
// have a nice black background to draw on (even if there were errors opening the vid)
- if (Screen=1) and not Window.windowed then begin
+ if Not Window.windowed then
+ begin
glDisable(GL_BLEND);
//glDisable(GL_DEPTH_TEST);
//glDepthMask(GL_FALSE);
//glDisable(GL_CULL_FACE);
+
+ glScissor(round((ScreenW/Screens)*(Screen-1)),
+ 0,
+ round(ScreenW/Screens),
+ round(ScreenH));
+ glEnable(GL_SCISSOR_TEST);
glClearColor(0,0,0,1);
glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);
+
+ glDisable(GL_SCISSOR_TEST);
end else
glEnable(GL_BLEND);
@@ -786,13 +795,14 @@ begin
GetVideoRect(ScreenRect, TexRect, Window);
-
- glScissor(round((Window.Left)*(ScreenW/Screens)/RenderW+(ScreenW/Screens)*(Screen-1)),
- round((RenderH-Window.Lower)*ScreenH/RenderH),
- round((Window.Right-Window.Left)*(ScreenW/Screens)/RenderW),
- round((Window.Lower-Window.Upper)*ScreenH/RenderH));
- glEnable(GL_SCISSOR_TEST);
-
+ if Window.windowed then
+ begin
+ glScissor(round((Window.Left)*(ScreenW/Screens)/RenderW+(ScreenW/Screens)*(Screen-1)),
+ round((RenderH-Window.Lower)*ScreenH/RenderH),
+ round((Window.Right-Window.Left)*(ScreenW/Screens)/RenderW),
+ round((Window.Lower-Window.Upper)*ScreenH/RenderH));
+ glEnable(GL_SCISSOR_TEST);
+ end;
glEnable(GL_TEXTURE_2D);
glColor4f(1, 1, 1, Blend);