Commit f6451da5 authored by Tony Castley's avatar Tony Castley

Tidied code and prevented curruption on window not containing the video.

Video window now returns to correct size and position after toggling
full screen.
parent 2f4af9df
...@@ -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.10 2002/03/13 08:39:39 tcastley Exp $ * $Id: VideoWindow.h,v 1.11 2002/03/17 05:48:18 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>
...@@ -29,6 +29,7 @@ public: ...@@ -29,6 +29,7 @@ public:
~VLCView(); ~VLCView();
void MouseDown(BPoint point); void MouseDown(BPoint point);
void Draw(BRect updateRect);
}; };
...@@ -40,16 +41,14 @@ public: ...@@ -40,16 +41,14 @@ public:
struct vout_thread_s *p_video_output); struct vout_thread_s *p_video_output);
~VideoWindow(); ~VideoWindow();
void resizeIfRequired(int newWidth, int newHeight);
void drawBuffer(int bufferIndex); void drawBuffer(int bufferIndex);
// 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
int32 i_height; int32 i_height;
float f_w_width; // current window size BRect winSize; // current window size
float f_w_height; float width_scale, height_scale;
bool resized; bool is_zoomed, resized;
bool is_zoomed;
BBitmap *bitmap[2]; BBitmap *bitmap[2];
VLCView *view; VLCView *view;
BWindow *voutWindow; BWindow *voutWindow;
...@@ -72,8 +71,6 @@ public: ...@@ -72,8 +71,6 @@ public:
virtual void FrameResized(float width, float height); virtual void FrameResized(float width, float height);
virtual void Zoom(BPoint origin, float width, float height); virtual void Zoom(BPoint origin, float width, float height);
private: private:
bool is_zoomed;
BRect origRect;
VideoWindow *owner; VideoWindow *owner;
}; };
...@@ -90,7 +87,5 @@ public: ...@@ -90,7 +87,5 @@ public:
virtual void Zoom(BPoint origin, float width, float height); virtual void Zoom(BPoint origin, float width, float height);
virtual void DirectConnected(direct_buffer_info *info); virtual void DirectConnected(direct_buffer_info *info);
private: private:
bool is_zoomed;
BRect origRect;
VideoWindow *owner; VideoWindow *owner;
}; };
This diff is collapsed.
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