aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-22 19:52:49 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-22 19:52:49 +0000
commit1da83f81361aedca04a91e81e5e3a817681ca8cf (patch)
tree48b9e04395b0a688835ff79a2d857fd457646ecc /Game/Code
parent36f1d0eafe8dae5498bc75e6976e9cb3ddd0ac94 (diff)
downloadusdx-1da83f81361aedca04a91e81e5e3a817681ca8cf.tar.gz
usdx-1da83f81361aedca04a91e81e5e3a817681ca8cf.tar.xz
usdx-1da83f81361aedca04a91e81e5e3a817681ca8cf.zip
fixed position of medley countdown
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2398 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Screens/UScreenSing.pas11
1 files changed, 6 insertions, 5 deletions
diff --git a/Game/Code/Screens/UScreenSing.pas b/Game/Code/Screens/UScreenSing.pas
index c6d83fd0..e06da0e7 100644
--- a/Game/Code/Screens/UScreenSing.pas
+++ b/Game/Code/Screens/UScreenSing.pas
@@ -82,7 +82,6 @@ type
SongNameStatic: integer;
SongNameText: integer;
MedleyHandler: THandler;
- CountDownText: string;
MedleyStart, MedleyEnd: real;
StartNote, EndNote: TPos;
@@ -1689,9 +1688,10 @@ end;
procedure TScreenSing.DrawMedleyCountdown();
var
- w, h: real;
- timeDiff: real;
- t: real;
+ w, h: real;
+ timeDiff: real;
+ t: real;
+ CountDownText: string;
begin
if (Czas.Teraz < GetTimeFromBeat(AktSong.Medley.StartBeat)) then
@@ -1705,10 +1705,11 @@ begin
SetFontStyle(1);
SetFontItalic(false);
SetFontSize(h);
+ CountDownText := IntToStr(round(timeDiff-t));
w := glTextWidth(PChar(CountDownText));
SetFontPos (RenderW/2-w/2, RenderH/2-h/2*3);
- glPrint(PChar(IntToStr(round(timeDiff-t))));
+ glPrint(PChar(CountDownText));
end;
end;