aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-07-04 15:16:46 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-07-04 15:16:46 +0000
commit6731fad709d6ae924c15b0781d8debadaaf4840c (patch)
tree5180e4509f5328feb65bf73994a2e3a8ed18a316
parent5cd178c47df571c1ff04fe08fa09c8ac3add4e67 (diff)
downloadusdx-6731fad709d6ae924c15b0781d8debadaaf4840c.tar.gz
usdx-6731fad709d6ae924c15b0781d8debadaaf4840c.tar.xz
usdx-6731fad709d6ae924c15b0781d8debadaaf4840c.zip
- divide ScreenW by 2 in modi list if screens=2 and fullscreen (UIni)
- fixed crash after singing (with screens=2) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2572 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/base/UIni.pas2
-rw-r--r--src/screens/UScreenSing.pas7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/base/UIni.pas b/src/base/UIni.pas
index b198f22c..6dd2956d 100644
--- a/src/base/UIni.pas
+++ b/src/base/UIni.pas
@@ -841,7 +841,7 @@ begin
begin
Log.LogStatus( 'Found Video Mode : ' + IntToStr(Modes^.w) + 'x' + IntToStr(Modes^.h) , 'Video');
SetLength(IResolution, Length(IResolution) + 1);
- IResolution[High(IResolution)] := IntToStr(Modes^.w) + 'x' + IntToStr(Modes^.h);
+ IResolution[High(IResolution)] := IntToStr(Modes^.w div (Screens+1)) + 'x' + IntToStr(Modes^.h);
Inc(Modes);
end;
diff --git a/src/screens/UScreenSing.pas b/src/screens/UScreenSing.pas
index 3e0d8078..b0318072 100644
--- a/src/screens/UScreenSing.pas
+++ b/src/screens/UScreenSing.pas
@@ -230,8 +230,8 @@ begin
//Sound[0].BufferLong
Finish;
+ FadeOut := true;
AudioPlayback.PlaySound(SoundLib.Back);
- FadeTo(@ScreenScore);
end;
SDLK_SPACE:
@@ -884,7 +884,7 @@ begin
end
else
begin
- if (not FadeOut) then
+ if (not FadeOut) and (Screens=1) or (ScreenAct=2) then
begin
Finish;
FadeOut := true;
@@ -942,7 +942,8 @@ begin
SetFontItalic(false);
- Party.CallAfterSing;
+ if not FadeOut then
+ Party.CallAfterSing;
end;
procedure TScreenSing.OnSentenceEnd(SentenceIndex: cardinal);