From 8585054e901bf9c7d05e1ab25ab872220d0f5018 Mon Sep 17 00:00:00 2001 From: b1indy Date: Fri, 23 Nov 2007 13:42:53 +0000 Subject: 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 --- Game/Code/Classes/UVideo.pas | 15 +++++++-------- 1 file 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'); -- cgit v1.2.3