diff options
author | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-02-20 04:37:32 +0000 |
---|---|---|
committer | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-02-20 04:37:32 +0000 |
commit | 36748c495e7d5d5340af4955062bbf8df9c805d2 (patch) | |
tree | 23cb02ff310c0ee04af641b4943bb27aeba0230c /Game/Code/Menu/UMenu.pas | |
parent | 1a94097c5baccf831bc85befa159b2b02c3c0bc3 (diff) | |
download | usdx-36748c495e7d5d5340af4955062bbf8df9c805d2.tar.gz usdx-36748c495e7d5d5340af4955062bbf8df9c805d2.tar.xz usdx-36748c495e7d5d5340af4955062bbf8df9c805d2.zip |
fixed video looping and background video playback on linux..
( probably fixed stuff for windows also )
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@868 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Menu/UMenu.pas | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Game/Code/Menu/UMenu.pas b/Game/Code/Menu/UMenu.pas index 6a5cb0ff..edaeaab4 100644 --- a/Game/Code/Menu/UMenu.pas +++ b/Game/Code/Menu/UMenu.pas @@ -307,7 +307,7 @@ begin begin BackImg := Texture.GetTexture( fFileName , 'Plain'); - if ( BackImg.TexNum = 0 ) then + if ( BackImg.TexNum < 1 ) then begin if VideoPlayback.Open( fFileName ) then VideoPlayback.Play; @@ -1537,13 +1537,8 @@ begin if fileexists( fFileName ) then begin - // BackImg := Texture.GetTexture( fFileName , 'Plain'); - - if ( BackImg.TexNum = 0 ) then - begin - if VideoPlayback.Open( fFileName ) then - VideoPlayback.Play; - end; + if VideoPlayback.Open( fFileName ) then + VideoPlayback.Play; end; end; |