aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-24 13:31:43 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-24 13:31:43 +0000
commit739ad9a6dee57375f05dcd20dc59ba2d619f11fa (patch)
treefb82b095cd5dca1bb06aaca59e1936008fac3490 /Game/Code/Menu
parent1f9fd791bbe68741b8273a64eb5c0abe928e431c (diff)
downloadusdx-739ad9a6dee57375f05dcd20dc59ba2d619f11fa.tar.gz
usdx-739ad9a6dee57375f05dcd20dc59ba2d619f11fa.tar.xz
usdx-739ad9a6dee57375f05dcd20dc59ba2d619f11fa.zip
fixed song loading in Lazarus..
cant assume variables are initialized as 0 :) in UFile "Done: byte;" was no initialized on lazarus compiler. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@431 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Menu/UMenu.pas1
-rw-r--r--Game/Code/Menu/UMenuText.pas4
2 files changed, 4 insertions, 1 deletions
diff --git a/Game/Code/Menu/UMenu.pas b/Game/Code/Menu/UMenu.pas
index 16bc4ab2..291dc201 100644
--- a/Game/Code/Menu/UMenu.pas
+++ b/Game/Code/Menu/UMenu.pas
@@ -764,6 +764,7 @@ begin
for J := 0 to Length(Text) - 1 do
Text[J].Draw;
+
// Draw all ButtonCollections
For J := 0 to High(ButtonCollection) do
ButtonCollection[J].Draw;
diff --git a/Game/Code/Menu/UMenuText.pas b/Game/Code/Menu/UMenuText.pas
index d1c8b7b1..19adef03 100644
--- a/Game/Code/Menu/UMenuText.pas
+++ b/Game/Code/Menu/UMenuText.pas
@@ -237,10 +237,12 @@ var
Text2: string;
I: Integer;
begin
- if Visible then begin
+ if Visible then
+ begin
SetFontStyle(Style);
SetFontSize(Size);
SetFontItalic(False);
+
glColor4f(ColR*Int, ColG*Int, ColB*Int, Alpha);
//If Selected Set Blink...