From: Eric Petit Date: Sat, 7 Dec 2002 22:00:36 +0000 (+0000) Subject: * use RGB32 BBitmap. That fixes the bad-looking picture in X-Git-Tag: 0.5.0~587 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=490a596129c5fa1633c3d2f79a924c39df53894c;p=vlc * use RGB32 BBitmap. That fixes the bad-looking picture in non-overlay mode (thanks Sam). --- diff --git a/modules/gui/beos/VideoOutput.cpp b/modules/gui/beos/VideoOutput.cpp index 384c732632..a2f6dee63c 100644 --- a/modules/gui/beos/VideoOutput.cpp +++ b/modules/gui/beos/VideoOutput.cpp @@ -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 * Samuel Hocevar @@ -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 ); diff --git a/modules/gui/beos/VideoWindow.h b/modules/gui/beos/VideoWindow.h index 396a79dac3..775c04fddf 100644 --- a/modules/gui/beos/VideoWindow.h +++ b/modules/gui/beos/VideoWindow.h @@ -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 * Tony Castley @@ -53,7 +53,7 @@ colorcombo colspace[]= }; #define COLOR_COUNT 5 -#define DEFAULT_COL 4 +#define DEFAULT_COL 3 class VLCView : public BView