Commit 490a5961 authored by Eric Petit's avatar Eric Petit

* use RGB32 BBitmap. That fixes the bad-looking picture in

   non-overlay mode (thanks Sam).
parent 0d62cd7d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method * vout_beos.cpp: beos video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * 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> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -529,11 +529,7 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode) ...@@ -529,11 +529,7 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
if (*mode == BITMAP) if (*mode == BITMAP)
{ {
// fallback to RGB // fallback to RGB
colspace_index = DEFAULT_COL; // B_RGB16 colspace_index = DEFAULT_COL; // B_RGB32
// 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)*/
SetTitle( VOUT_TITLE " (Bitmap)" ); SetTitle( VOUT_TITLE " (Bitmap)" );
bitmap[0] = new BBitmap( bitmapFrame, colspace[colspace_index].colspace ); bitmap[0] = new BBitmap( bitmapFrame, colspace[colspace_index].colspace );
bitmap[1] = new BBitmap( bitmapFrame, colspace[colspace_index].colspace ); bitmap[1] = new BBitmap( bitmapFrame, colspace[colspace_index].colspace );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* VideoWindow.h: BeOS video window class prototype * VideoWindow.h: BeOS video window class prototype
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * 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> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au> * Tony Castley <tcastley@mail.powerup.com.au>
...@@ -53,7 +53,7 @@ colorcombo colspace[]= ...@@ -53,7 +53,7 @@ colorcombo colspace[]=
}; };
#define COLOR_COUNT 5 #define COLOR_COUNT 5
#define DEFAULT_COL 4 #define DEFAULT_COL 3
class VLCView : public BView class VLCView : public BView
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment