]> git.sesse.net Git - vlc/commitdiff
* use RGB32 BBitmap. That fixes the bad-looking picture in
authorEric Petit <titer@videolan.org>
Sat, 7 Dec 2002 22:00:36 +0000 (22:00 +0000)
committerEric Petit <titer@videolan.org>
Sat, 7 Dec 2002 22:00:36 +0000 (22:00 +0000)
   non-overlay mode (thanks Sam).

modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoWindow.h

index 384c732632f775fbca2b8f6bd20f1d3a86224761..a2f6dee63c15372b231bda17ba5c0a07e09ef017 100644 (file)
@@ -2,7 +2,7 @@
  * vout_beos.cpp: beos video output display method
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: VideoOutput.cpp,v 1.8 2002/12/04 06:23:08 titer Exp $
+ * $Id: VideoOutput.cpp,v 1.9 2002/12/07 22:00:36 titer Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -529,11 +529,7 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
     if (*mode == BITMAP)
        {
         // fallback to RGB
-        colspace_index = DEFAULT_COL;  // B_RGB16
-// FIXME: an error in the YUV->RGB32 module prevents this from being used!
-/*        BScreen screen( B_MAIN_SCREEN_ID );
-        if ( screen.ColorSpace() == B_RGB32 )
-               colspace_index = 3;                     // B_RGB32 (faster on 32 bit screen)*/
+        colspace_index = DEFAULT_COL;  // B_RGB32
         SetTitle( VOUT_TITLE " (Bitmap)" );
         bitmap[0] = new BBitmap( bitmapFrame, colspace[colspace_index].colspace );
         bitmap[1] = new BBitmap( bitmapFrame, colspace[colspace_index].colspace );
index 396a79dac3c21385568ed0b8734b98f0a65338f5..775c04fddf1368123827d965ca74447c7f238221 100644 (file)
@@ -2,7 +2,7 @@
  * VideoWindow.h: BeOS video window class prototype
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: VideoWindow.h,v 1.4 2002/12/03 02:00:38 titer Exp $
+ * $Id: VideoWindow.h,v 1.5 2002/12/07 22:00:36 titer Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Tony Castley <tcastley@mail.powerup.com.au>
@@ -53,7 +53,7 @@ colorcombo colspace[]=
 };
 
 #define COLOR_COUNT 5
-#define DEFAULT_COL 4
+#define DEFAULT_COL 3
 
 
 class VLCView : public BView