Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
cf1ded59
Commit
cf1ded59
authored
Nov 09, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ modules/gui/beos/VideoOutput.cpp: fixed modifiers
+ src/misc/beos_specific.cpp: cosmetic
parent
21c8b34b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
27 deletions
+63
-27
configure.ac
configure.ac
+2
-2
modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoOutput.cpp
+57
-20
src/misc/beos_specific.cpp
src/misc/beos_specific.cpp
+4
-5
No files found.
configure.ac
View file @
cf1ded59
dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.11
0 2003/11/08 18:23:40
titer Exp $
dnl $Id: configure.ac,v 1.11
1 2003/11/09 16:00:54
titer Exp $
AC_INIT(vlc,0.6.3-cvs)
...
...
@@ -285,7 +285,7 @@ AC_CHECK_FUNCS(gethostbyname,,[
AX_ADD_LDFLAGS([ipv4 httpd vlc],[-lnsl])
],[
AC_CHECK_LIB(bind,gethostbyname,[
AX_ADD_LDFLAGS([ipv4 httpd],[-lbind])
AX_ADD_LDFLAGS([ipv4
access_mms
httpd],[-lbind])
])
])
])
...
...
modules/gui/beos/VideoOutput.cpp
View file @
cf1ded59
...
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: VideoOutput.cpp,v 1.2
5 2003/11/08 18:23:40
titer Exp $
* $Id: VideoOutput.cpp,v 1.2
6 2003/11/09 16:00:54
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -112,8 +112,32 @@ static int ConvertKey( int key )
{
switch
(
key
)
{
case
B_LEFT_ARROW
:
return
KEY_LEFT
;
case
B_RIGHT_ARROW
:
return
KEY_RIGHT
;
case
B_UP_ARROW
:
return
KEY_UP
;
case
B_DOWN_ARROW
:
return
KEY_DOWN
;
case
B_SPACE
:
return
KEY_SPACE
;
case
B_ENTER
:
return
KEY_ENTER
;
case
B_HOME
:
return
KEY_HOME
;
case
B_END
:
return
KEY_END
;
case
B_ESCAPE
:
return
KEY_ESC
;
case
B_PAGE_UP
:
return
KEY_PAGEUP
;
case
B_PAGE_DOWN
:
return
KEY_PAGEDOWN
;
case
B_TAB
:
return
KEY_TAB
;
case
B_BACKSPACE
:
return
KEY_BACKSPACE
;
}
return
key
;
}
...
...
@@ -184,8 +208,6 @@ VideoSettings::VideoSettings()
}
else
{
fprintf
(
stderr
,
"error loading video settings: %s
\n
"
,
strerror
(
ret
)
);
// figure out if we should use vertical sync by default
BScreen
screen
(
B_MAIN_SCREEN_ID
);
if
(
screen
.
IsValid
())
...
...
@@ -219,9 +241,7 @@ VideoSettings::~VideoSettings()
if
(
fSettings
->
ReplaceInt32
(
"flags"
,
Flags
()
)
!=
B_OK
)
fSettings
->
AddInt32
(
"flags"
,
Flags
()
);
status_t
ret
=
save_settings
(
fSettings
,
"video_settings"
,
"VideoLAN Client"
);
if
(
ret
!=
B_OK
)
fprintf
(
stderr
,
"error saving video settings: %s
\n
"
,
strerror
(
ret
)
);
save_settings
(
fSettings
,
"video_settings"
,
"VideoLAN Client"
);
delete
fSettings
;
}
else
...
...
@@ -616,7 +636,7 @@ VideoWindow::SetFullScreen(bool doIt)
if
(
doIt
)
{
SetLook
(
B_NO_BORDER_WINDOW_LOOK
);
BScreen
screen
(
this
);
BScreen
screen
(
this
);
BRect
rect
=
screen
.
Frame
();
Activate
();
MoveTo
(
0.0
,
0.0
);
...
...
@@ -1297,25 +1317,28 @@ VLCView::Pulse()
*****************************************************************************/
void
VLCView
::
KeyDown
(
const
char
*
bytes
,
int32
numBytes
)
{
VideoWindow
*
videoWindow
=
(
VideoWindow
*
)
Window
();
if
(
!
videoWindow
||
numBytes
<
1
)
if
(
numBytes
<
1
)
{
return
;
}
uint32_t
mods
=
modifiers
();
uint32_t
mods
=
modifiers
();
vlc_value_t
val
;
val
.
i_int
=
0
;
switch
(
*
bytes
)
val
.
i_int
=
ConvertKey
(
*
bytes
);
if
(
mods
&
B_SHIFT_KEY
)
{
default:
val
.
i_int
|=
ConvertKey
(
*
bytes
);
var_Set
(
p_vout
->
p_vlc
,
"key-pressed"
,
val
);
break
;
val
.
i_int
|=
KEY_MODIFIER_SHIFT
;
}
if
(
mods
&
B_CONTROL_KEY
)
{
val
.
i_int
|=
KEY_MODIFIER_CTRL
;
}
if
(
mods
&
B_COMMAND_KEY
)
{
val
.
i_int
|=
KEY_MODIFIER_ALT
;
}
var_Set
(
p_vout
->
p_vlc
,
"key-pressed"
,
val
);
}
/*****************************************************************************
...
...
@@ -1334,7 +1357,7 @@ VLCView::Draw(BRect updateRect)
*****************************************************************************/
static
int
Init
(
vout_thread_t
*
);
static
void
End
(
vout_thread_t
*
);
//
static int Manage ( vout_thread_t * );
static
int
Manage
(
vout_thread_t
*
);
static
void
Display
(
vout_thread_t
*
,
picture_t
*
);
static
int
BeosOpenDisplay
(
vout_thread_t
*
p_vout
);
...
...
@@ -1362,7 +1385,7 @@ int E_(OpenVideo) ( vlc_object_t *p_this )
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
p_vout
->
pf_manage
=
NULL
;
p_vout
->
pf_manage
=
Manage
;
p_vout
->
pf_render
=
NULL
;
p_vout
->
pf_display
=
Display
;
...
...
@@ -1445,6 +1468,20 @@ void End( vout_thread_t *p_vout )
BeosCloseDisplay
(
p_vout
);
}
/*****************************************************************************
* Manage
*****************************************************************************/
static
int
Manage
(
vout_thread_t
*
p_vout
)
{
if
(
p_vout
->
i_changes
&
VOUT_FULLSCREEN_CHANGE
)
{
p_vout
->
p_sys
->
p_window
->
PostMessage
(
TOGGLE_FULL_SCREEN
);
p_vout
->
i_changes
&=
~
VOUT_FULLSCREEN_CHANGE
;
}
return
0
;
}
/*****************************************************************************
* CloseVideo: destroy BeOS video thread output method
*****************************************************************************
...
...
src/misc/beos_specific.cpp
View file @
cf1ded59
...
...
@@ -2,7 +2,7 @@
* beos_init.cpp: Initialization for BeOS specific features
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: beos_specific.cpp,v 1.3
3 2003/10/25 00:49:14 sam
Exp $
* $Id: beos_specific.cpp,v 1.3
4 2003/11/09 16:00:54 titer
Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
*
...
...
@@ -226,10 +226,9 @@ bool VlcApplication::QuitRequested()
{
if
(
CurrentMessage
()
&&
CurrentMessage
()
->
FindBool
(
"shortcut"
)
)
{
/* The user hit Alt+Q, don't let the be_app exit without cleaning.
Let the interface do the job */
if
(
fInterfaceWindow
)
fInterfaceWindow
->
PostMessage
(
B_QUIT_REQUESTED
);
/* The user hit Alt+Q, don't let the be_app exit without
cleaning */
p_this
->
p_vlc
->
b_die
=
1
;
return
false
;
}
...
...
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