Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
9e29e24f
Commit
9e29e24f
authored
Mar 05, 2001
by
Richard Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
ee8c617e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
22 deletions
+19
-22
plugins/beos/InterfaceWindow.h
plugins/beos/InterfaceWindow.h
+0
-2
plugins/beos/intf_beos.cpp
plugins/beos/intf_beos.cpp
+8
-7
plugins/beos/vout_beos.cpp
plugins/beos/vout_beos.cpp
+11
-13
No files found.
plugins/beos/InterfaceWindow.h
View file @
9e29e24f
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
*****************************************************************************/
#define MENU_HEIGHT 15
class
InterfaceWindow
:
public
BWindow
class
InterfaceWindow
:
public
BWindow
{
{
public:
public:
...
...
plugins/beos/intf_beos.cpp
View file @
9e29e24f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* intf_beos.cpp: beos interface
* intf_beos.cpp: beos interface
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: intf_beos.cpp,v 1.1
5 2001/03/05 20:36:04
richards Exp $
* $Id: intf_beos.cpp,v 1.1
6 2001/03/05 22:29:02
richards 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>
...
@@ -49,10 +49,10 @@
...
@@ -49,10 +49,10 @@
#include <Locker.h>
#include <Locker.h>
#include <DirectWindow.h>
#include <DirectWindow.h>
#include <Box.h>
#include <Box.h>
#include <Alert.h>
#include <MenuBar.h>
#include <MenuBar.h>
#include <MenuItem.h>
#include <MenuItem.h>
#include <FilePanel.h>
#include <FilePanel.h>
#include <Alert.h>
#include <malloc.h>
#include <malloc.h>
#include <string.h>
#include <string.h>
...
@@ -107,14 +107,13 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name , intf_thread_t
...
@@ -107,14 +107,13 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name , intf_thread_t
SetName
(
"interface"
);
SetName
(
"interface"
);
SetTitle
(
VOUT_TITLE
" (BeOS interface)"
);
SetTitle
(
VOUT_TITLE
" (BeOS interface)"
);
BRect
rect
(
0
,
0
,
0
,
MENU_HEIGHT
);
BRect
rect
(
0
,
0
,
0
,
0
);
BMenuBar
*
menu_bar
;
BMenuBar
*
menu_bar
;
menu_bar
=
new
BMenuBar
(
rect
,
"main menu"
);
menu_bar
=
new
BMenuBar
(
rect
,
"main menu"
);
AddChild
(
menu_bar
);
AddChild
(
menu_bar
);
BMenu
*
m
;
BMenu
*
m
;
BMenuItem
*
i
;
menu_bar
->
AddItem
(
m
=
new
BMenu
(
"File"
)
);
menu_bar
->
AddItem
(
m
=
new
BMenu
(
"File"
)
);
menu_bar
->
ResizeToPreferred
();
menu_bar
->
ResizeToPreferred
();
...
@@ -226,7 +225,6 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
...
@@ -226,7 +225,6 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
{
{
int
vol_val
=
p_vol
->
Value
();
// remember the current volume
int
vol_val
=
p_vol
->
Value
();
// remember the current volume
static
int
playback_status
;
// remember playback state
static
int
playback_status
;
// remember playback state
BAlert
*
alert
;
BAlert
*
alert
;
Activate
();
Activate
();
...
@@ -244,8 +242,9 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
...
@@ -244,8 +242,9 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
break
;
break
;
case
OPEN_DVD
:
case
OPEN_DVD
:
alert
=
new
BAlert
(
VOUT_TITLE
,
"Opening DVDs not yet implemen
ted"
,
"Bummer"
);
alert
=
new
BAlert
(
VOUT_TITLE
,
"Opening DVD not yet suppor
ted"
,
"Bummer"
);
alert
->
Go
();
alert
->
Go
();
//intf_PlstAdd( p_main->p_playlist, PLAYLIST_END, "dvd:/dev/disk/ide/atapi/1/master/0/raw" );
break
;
break
;
case
STOP_PLAYBACK
:
case
STOP_PLAYBACK
:
...
@@ -349,10 +348,12 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
...
@@ -349,10 +348,12 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
{
{
if
(
p_main
->
p_aout
->
vol
==
0
)
if
(
p_main
->
p_aout
->
vol
==
0
)
{
{
p_vol
->
SetEnabled
(
true
);
p_main
->
p_aout
->
vol
=
vol_val
;
p_main
->
p_aout
->
vol
=
vol_val
;
}
}
else
else
{
{
p_vol
->
SetEnabled
(
false
);
p_main
->
p_aout
->
vol
=
0
;
p_main
->
p_aout
->
vol
=
0
;
}
}
}
}
...
...
plugins/beos/vout_beos.cpp
View file @
9e29e24f
...
@@ -142,7 +142,7 @@ int32 DrawingThread(void *data)
...
@@ -142,7 +142,7 @@ int32 DrawingThread(void *data)
*****************************************************************************/
*****************************************************************************/
VideoWindow
::
VideoWindow
(
BRect
frame
,
const
char
*
name
,
vout_thread_t
*
p_video_output
)
VideoWindow
::
VideoWindow
(
BRect
frame
,
const
char
*
name
,
vout_thread_t
*
p_video_output
)
:
BWindow
(
frame
,
name
,
B_
DOCUMENT
_WINDOW
,
NULL
)
:
BWindow
(
frame
,
name
,
B_
TITLED
_WINDOW
,
NULL
)
{
{
float
minWidth
,
minHeight
,
maxWidth
,
maxHeight
;
float
minWidth
,
minHeight
,
maxWidth
,
maxHeight
;
...
@@ -192,10 +192,6 @@ VideoWindow::VideoWindow(BRect frame, const char *name, vout_thread_t *p_video_o
...
@@ -192,10 +192,6 @@ VideoWindow::VideoWindow(BRect frame, const char *name, vout_thread_t *p_video_o
SetTitle
(
VOUT_TITLE
" (BBitmap output)"
);
SetTitle
(
VOUT_TITLE
" (BBitmap output)"
);
}
}
i_bytes_per_pixel
=
bitmap
[
0
]
->
BytesPerRow
()
/
bitmap
[
0
]
->
Bounds
().
IntegerWidth
();
fRowBytes
=
bitmap
[
0
]
->
BytesPerRow
();
fDirty
=
false
;
if
(
fUsingOverlay
)
if
(
fUsingOverlay
)
{
{
memset
(
bitmap
[
0
]
->
Bits
(),
0
,
bitmap
[
0
]
->
BitsLength
());
memset
(
bitmap
[
0
]
->
Bits
(),
0
,
bitmap
[
0
]
->
BitsLength
());
...
@@ -213,6 +209,10 @@ VideoWindow::VideoWindow(BRect frame, const char *name, vout_thread_t *p_video_o
...
@@ -213,6 +209,10 @@ VideoWindow::VideoWindow(BRect frame, const char *name, vout_thread_t *p_video_o
B_DISPLAY_PRIORITY
,
(
void
*
)
this
);
B_DISPLAY_PRIORITY
,
(
void
*
)
this
);
resume_thread
(
fDrawThreadID
);
resume_thread
(
fDrawThreadID
);
}
}
i_bytes_per_pixel
=
bitmap
[
0
]
->
BytesPerRow
()
/
bitmap
[
0
]
->
Bounds
().
IntegerWidth
();
fRowBytes
=
bitmap
[
0
]
->
BytesPerRow
();
fDirty
=
false
;
Show
();
Show
();
}
}
...
@@ -248,7 +248,6 @@ if(is_zoomed)
...
@@ -248,7 +248,6 @@ if(is_zoomed)
{
{
MoveTo
(
rect
.
left
,
rect
.
top
);
MoveTo
(
rect
.
left
,
rect
.
top
);
ResizeTo
(
rect
.
IntegerWidth
(),
rect
.
IntegerHeight
());
ResizeTo
(
rect
.
IntegerWidth
(),
rect
.
IntegerHeight
());
SetLook
(
B_DOCUMENT_WINDOW_LOOK
);
be_app
->
ShowCursor
();
be_app
->
ShowCursor
();
}
}
else
else
...
@@ -260,7 +259,6 @@ else
...
@@ -260,7 +259,6 @@ else
delete
screen
;
delete
screen
;
MoveTo
(
0
,
0
);
MoveTo
(
0
,
0
);
ResizeTo
(
rect
.
IntegerWidth
(),
rect
.
IntegerHeight
());
ResizeTo
(
rect
.
IntegerWidth
(),
rect
.
IntegerHeight
());
SetLook
(
B_NO_BORDER_WINDOW_LOOK
);
be_app
->
HideCursor
();
be_app
->
HideCursor
();
}
}
is_zoomed
=
!
is_zoomed
;
is_zoomed
=
!
is_zoomed
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment