aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-23 13:38:13 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-23 13:38:13 +0000
commit64c24677dd321b23c2142cb602a165fbaebed7b3 (patch)
tree462ae51d42f19124e8004a3a8f567a8964b02f33
parent0eb0755a65680de2942be4e1b58b80fa85cd8a74 (diff)
downloadusdx-64c24677dd321b23c2142cb602a165fbaebed7b3.tar.gz
usdx-64c24677dd321b23c2142cb602a165fbaebed7b3.tar.xz
usdx-64c24677dd321b23c2142cb602a165fbaebed7b3.zip
video-always-full-width-hack xD
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@631 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/UVideo.pas8
1 files changed, 6 insertions, 2 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index bd5d2b62..647cf30e 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -232,15 +232,19 @@ begin
VideoAspect:=VideoCodecContext^.width/VideoCodecContext^.height
else
VideoAspect:=VideoAspect*VideoCodecContext^.width/VideoCodecContext^.height;
- if VideoAspect >= 4/3 then
+ VideoAspect:=0.5;
+ showmessage('Video Aspect: '+inttostr(integer(trunc(videoaspect*1000))));
+// if VideoAspect >= 4/3 then
begin
ScaledVideoWidth:=800.0;
ScaledVideoHeight:=800.0/VideoAspect;
- end else
+ end;
+{ else
begin
ScaledVideoHeight:=600.0;
ScaledVideoWidth:=600.0*VideoAspect;
end;
+}
VideoTimeBase:=VideoCodecContext^.time_base.num/VideoCodecContext^.time_base.den;
{$ifdef DebugDisplay}
showmessage('framerate: '+inttostr(floor(1/videotimebase))+'fps');