aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-23 15:12:57 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-23 15:12:57 +0000
commit37d5c6a5e34e3027d52b0b004588c42dbf67905b (patch)
tree2a34de02039813bd6723cdce15fc99bda136267f /Game/Code
parent38ca91b7c307c4d87eaf2f4b73e5426567262216 (diff)
downloadusdx-37d5c6a5e34e3027d52b0b004588c42dbf67905b.tar.gz
usdx-37d5c6a5e34e3027d52b0b004588c42dbf67905b.tar.xz
usdx-37d5c6a5e34e3027d52b0b004588c42dbf67905b.zip
half size video (works now with ffmpeg)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@634 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UVideo.pas38
1 files changed, 38 insertions, 0 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index a38788c1..7378aa92 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -437,6 +437,44 @@ begin
glDisable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
+// showmessage('Ini.MovieSize = '+inttostr(Ini.MovieSize));
+ if (Ini.MovieSize < 1) then //HalfSize BG
+ begin
+ // draw fading bars over top and bottom of background/video
+ glEnable(GL_BLEND);
+ glBegin(GL_QUADS);
+ (* black top *)
+ glColor4f(0,0,0,1);
+ glVertex2f(0, 0);
+ glVertex2f(800,0);
+ glVertex2f(800,110);
+ glVertex2f(0,110);
+ (* top gradient *)
+ glVertex2f(0, 110);
+ glVertex2f(800,110);
+ glColor4f(0,0,0,0);
+ glVertex2f(800,130);
+ glVertex2f(0,130);
+
+ (* bottom gradient *)
+ glColor4f(0,0,0,0);
+ glVertex2f(0, 600-130);
+ glVertex2f(800,600-130);
+ glColor4f(0,0,0,1);
+ glVertex2f(800,600-110);
+ glVertex2f(0,600-110);
+ (* black bottom *)
+ glVertex2f(0, 600-110);
+ glVertex2f(800,600-110);
+ glVertex2f(800,600);
+ glVertex2f(0,600);
+
+ glEnd;
+ glDisable(GL_BLEND);
+ end
+
+// info-stuff
+
{$ifdef Info}
if VideoSkipTime+VideoTime+VideoTimeBase < 0 then begin
glColor4f(0.7, 1, 0.3, 1);