Commit e412ce5f authored by Tony Castley's avatar Tony Castley

* Fixes for Playlist window. Now only creates one and destroys correctly.

* Fixed the height of the output video, was one to big.
parent d4eef422
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* PlayListWindow.cpp: beos interface * PlayListWindow.cpp: beos interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PlayListWindow.cpp,v 1.5 2001/12/30 07:09:54 sam Exp $ * $Id: PlayListWindow.cpp,v 1.6 2002/06/01 08:54:08 tcastley 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>
...@@ -43,12 +43,22 @@ extern "C" ...@@ -43,12 +43,22 @@ extern "C"
/* BeOS interface headers */ /* BeOS interface headers */
#include "InterfaceWindow.h" #include "InterfaceWindow.h"
#include "PlayListWindow.h"
#include "MsgVals.h" #include "MsgVals.h"
#include "PlayListWindow.h"
/***************************************************************************** /*****************************************************************************
* PlayListWindow * PlayListWindow
*****************************************************************************/ *****************************************************************************/
PlayListWindow *PlayListWindow::getPlayList( BRect frame, const char *name,
playlist_t *p_pl)
{
static PlayListWindow *one_playlist;
if (one_playlist == NULL)
{
one_playlist = new PlayListWindow(frame, name, p_pl);
}
return one_playlist;
}
PlayListWindow::PlayListWindow( BRect frame, const char *name, PlayListWindow::PlayListWindow( BRect frame, const char *name,
playlist_t *p_pl) playlist_t *p_pl)
...@@ -144,3 +154,16 @@ void PlayListWindow::MessageReceived( BMessage * p_message ) ...@@ -144,3 +154,16 @@ void PlayListWindow::MessageReceived( BMessage * p_message )
break; break;
} }
} }
bool PlayListWindow::QuitRequested()
{
Hide();
return false;
}
void PlayListWindow::ReallyQuit()
{
Hide();
Lock();
Quit();
}
\ No newline at end of file
...@@ -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.19 2002/05/20 11:21:01 tcastley Exp $ * $Id: VideoWindow.h,v 1.20 2002/06/01 08:54:08 tcastley 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>
...@@ -74,6 +74,7 @@ public: ...@@ -74,6 +74,7 @@ public:
void drawBuffer(int bufferIndex); void drawBuffer(int bufferIndex);
void WindowActivated(bool active); void WindowActivated(bool active);
int SelectDrawingMode(int width, int height); int SelectDrawingMode(int width, int height);
bool QuitRequested();
// this is the hook controling direct screen connection // this is the hook controling direct screen connection
int32 i_width; // incomming bitmap size int32 i_width; // incomming bitmap size
......
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