From 0d382c7708e1b087f35b6d4ea5fc795df52c2a22 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Sun, 15 Aug 2010 10:17:04 +0000 Subject: - added support for 4 (and even 6) players on one screen. its hard-coded and not finished yet. the score screen needs adjustment. - update of acinerella, changed pixel format to BGR (seems to be better than RGB) - update of the language files. big thanks to thursday for the english translation! - added languages.xls for managing the language files - added support for vbr-files (prescan). - reduced the volume in applause.mp3 - added description of plugins in challenge mode git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2609 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UVideo.pas | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Game/Code/Classes/UVideo.pas') diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas index 7342314c..6f646093 100644 --- a/Game/Code/Classes/UVideo.pas +++ b/Game/Code/Classes/UVideo.pas @@ -154,8 +154,12 @@ begin SkipLines := 0; LastSkipLines := 0; Counter := 0; - PIXEL_FORMAT := GL_RGB; - numBytes := 3; + numBytes := 4; + if (numBytes=3) then + PIXEL_FORMAT := GL_BGR + else + PIXEL_FORMAT := GL_RGBA; + EnableVideoDraw := true; end; @@ -201,7 +205,11 @@ begin if videodecoder = nil then begin VideoStreamIndex:=I; - inst^.output_format := AC_OUTPUT_RGB24; + if (numBytes=3) then + inst^.output_format := AC_OUTPUT_BGR24 + else + inst^.output_format := AC_OUTPUT_BGRA32; + videodecoder := ac_create_decoder(inst, I); end; end; @@ -921,7 +929,7 @@ begin end; {$endif} - if Ini.Debug = 1 then + if (Ini.Debug = 1) then begin glColor4f(0, 0, 0, 0.2); glbegin(gl_quads); -- cgit v1.2.3