diff options
author | basisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2015-10-20 00:07:57 +0000 |
---|---|---|
committer | basisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2015-10-20 00:07:57 +0000 |
commit | 0b3a0b60fc4646732ca6f1728712d790292f750b (patch) | |
tree | 01da2bc02a5118bf6f4c8a598e376348c53293d2 /src/screens | |
parent | fea48eb20937c681bc574b0d49a0c9e4197310fe (diff) | |
download | usdx-0b3a0b60fc4646732ca6f1728712d790292f750b.tar.gz usdx-0b3a0b60fc4646732ca6f1728712d790292f750b.tar.xz usdx-0b3a0b60fc4646732ca6f1728712d790292f750b.zip |
* Radeon X1600/X1650 graphics card report that they support NPOT, but they don't. Implemented a check for these graphics cards. (not yet tested if this fixes all of the problems of that card.
* when there was no background set up in the song.txt, trying to switch from visualization to visualization based ProjectM to crash. Fixed this by switching directly to video if there is no background.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3150 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/UScreenSing.pas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screens/UScreenSing.pas b/src/screens/UScreenSing.pas index bf3db3af..38c4762d 100644 --- a/src/screens/UScreenSing.pas +++ b/src/screens/UScreenSing.pas @@ -210,10 +210,13 @@ begin // show visualization Ord('V'): begin - if (fShowVisualization = false) and (fShowBackground = true) and (Ini.VideoEnabled = 1) and CurrentSong.Video.IsSet() then //only Background should be visible currently, switch to video + if ((fShowBackground = true) and (Ini.VideoEnabled = 1) and CurrentSong.Video.IsSet()) + or (fShowVisualization and not CurrentSong.Background.IsSet()) then //switch to video begin Log.LogStatus('decided to switch to video', 'UScreenSing.ParseInput'); fShowBackground := false; + fCurrentVideo := nil; + fShowVisualization := false; fCurrentVideo := fVideoClip; Log.LogStatus('finished switching to video', 'UScreenSing.ParseInput'); end |