aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-23 13:42:53 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-23 13:42:53 +0000
commit8585054e901bf9c7d05e1ab25ab872220d0f5018 (patch)
treeec3c84edbe09a1be2cfccafbff6bae704242a38d
parent64c24677dd321b23c2142cb602a165fbaebed7b3 (diff)
downloadusdx-8585054e901bf9c7d05e1ab25ab872220d0f5018.tar.gz
usdx-8585054e901bf9c7d05e1ab25ab872220d0f5018.tar.xz
usdx-8585054e901bf9c7d05e1ab25ab872220d0f5018.zip
removed additional test-hack ^^;
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@632 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/UVideo.pas15
1 files changed, 7 insertions, 8 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index 647cf30e..a38788c1 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -232,19 +232,18 @@ begin
VideoAspect:=VideoCodecContext^.width/VideoCodecContext^.height
else
VideoAspect:=VideoAspect*VideoCodecContext^.width/VideoCodecContext^.height;
- VideoAspect:=0.5;
showmessage('Video Aspect: '+inttostr(integer(trunc(videoaspect*1000))));
-// if VideoAspect >= 4/3 then
+// if VideoAspect >= 4/3 then // video-full-width-hack
begin
ScaledVideoWidth:=800.0;
ScaledVideoHeight:=800.0/VideoAspect;
end;
-{ else
- begin
- ScaledVideoHeight:=600.0;
- ScaledVideoWidth:=600.0*VideoAspect;
- end;
-}
+{ else // video-full-width-hack
+ begin // video-full-width-hack
+ ScaledVideoHeight:=600.0; // video-full-width-hack
+ ScaledVideoWidth:=600.0*VideoAspect; // video-full-width-hack
+ end; // video-full-width-hack
+} // video-full-width-hack
VideoTimeBase:=VideoCodecContext^.time_base.num/VideoCodecContext^.time_base.den;
{$ifdef DebugDisplay}
showmessage('framerate: '+inttostr(floor(1/videotimebase))+'fps');