Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6f8690b5
Commit
6f8690b5
authored
Dec 28, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beos/*:
+ fixed a possible crash with Alt+X shortcuts + fixed volume slider update
parent
aab4bf7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
41 deletions
+20
-41
modules/gui/beos/MediaControlView.cpp
modules/gui/beos/MediaControlView.cpp
+9
-1
modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoOutput.cpp
+9
-38
modules/gui/beos/VideoWindow.h
modules/gui/beos/VideoWindow.h
+2
-2
No files found.
modules/gui/beos/MediaControlView.cpp
View file @
6f8690b5
...
...
@@ -2,7 +2,7 @@
* MediaControlView.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.cpp,v 1.2
0 2003/09/07 22:53:09 fenri
r Exp $
* $Id: MediaControlView.cpp,v 1.2
1 2003/12/28 01:49:12 tite
r Exp $
*
* Authors: Tony Castley <tony@castley.net>
* Stephan Aßmus <stippi@yellowbites.com>
...
...
@@ -31,6 +31,10 @@
/* VLC headers */
#include <vlc/vlc.h>
#include <vlc/intf.h>
extern
"C"
{
#include <audio_output.h>
}
/* BeOS interface headers */
#include "VlcWrapper.h"
...
...
@@ -279,6 +283,10 @@ MediaControlView::Pulse()
InterfaceWindow
*
window
=
dynamic_cast
<
InterfaceWindow
*>
(
Window
());
if
(
window
&&
window
->
IsStopped
())
fPlayPause
->
SetStopped
();
unsigned
short
i_volume
;
aout_VolumeGet
(
p_intf
,
(
audio_volume_t
*
)
&
i_volume
);
fVolumeSlider
->
SetValue
(
i_volume
);
}
// SetProgress
...
...
modules/gui/beos/VideoOutput.cpp
View file @
6f8690b5
...
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: VideoOutput.cpp,v 1.2
8 2003/12/22 11:14:25
titer Exp $
* $Id: VideoOutput.cpp,v 1.2
9 2003/12/28 01:49:12
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -349,39 +349,6 @@ VideoWindow::VideoWindow(int v_width, int v_height, BRect frame,
AddShortcut
(
'2'
,
0
,
new
BMessage
(
RESIZE_100
)
);
AddShortcut
(
'3'
,
0
,
new
BMessage
(
RESIZE_200
)
);
// workaround to have Alt+X shortcuts working
BMessage
*
message
;
for
(
unsigned
i
=
1
;
/* skip KEY_UNSET */
i
<
sizeof
(
vlc_keys
)
/
sizeof
(
key_descriptor_t
);
i
++
)
{
/* Alt+X */
message
=
new
BMessage
(
SHORTCUT
);
message
->
AddInt32
(
"key"
,
vlc_keys
[
i
].
i_key_code
|
KEY_MODIFIER_ALT
);
AddShortcut
(
ConvertKeyFromVLC
(
vlc_keys
[
i
].
i_key_code
),
0
,
message
);
/* Alt+Shift+X */
message
=
new
BMessage
(
SHORTCUT
);
message
->
AddInt32
(
"key"
,
vlc_keys
[
i
].
i_key_code
|
KEY_MODIFIER_ALT
|
KEY_MODIFIER_SHIFT
);
AddShortcut
(
ConvertKeyFromVLC
(
vlc_keys
[
i
].
i_key_code
),
B_SHIFT_KEY
,
message
);
/* Alt+Ctrl+X */
message
=
new
BMessage
(
SHORTCUT
);
message
->
AddInt32
(
"key"
,
vlc_keys
[
i
].
i_key_code
|
KEY_MODIFIER_ALT
|
KEY_MODIFIER_CTRL
);
AddShortcut
(
ConvertKeyFromVLC
(
vlc_keys
[
i
].
i_key_code
),
B_CONTROL_KEY
,
message
);
/* Alt+Shift+Ctrl+X */
message
=
new
BMessage
(
SHORTCUT
);
message
->
AddInt32
(
"key"
,
vlc_keys
[
i
].
i_key_code
|
KEY_MODIFIER_ALT
|
KEY_MODIFIER_SHIFT
|
KEY_MODIFIER_CTRL
);
AddShortcut
(
ConvertKeyFromVLC
(
vlc_keys
[
i
].
i_key_code
),
B_SHIFT_KEY
|
B_CONTROL_KEY
,
message
);
}
_SetToSettings
();
}
...
...
@@ -1249,7 +1216,7 @@ VLCView::MouseDown(BPoint where)
menu
->
AddSeparatorItem
();
// Wind
wo
Feel Items
// Wind
ow
Feel Items
/* BMessage *winNormFeel = new BMessage(WINDOW_FEEL);
winNormFeel->AddInt32("WinFeel", (int32_t)B_NORMAL_WINDOW_FEEL);
BMenuItem *normWindItem = new BMenuItem("Normal Window", winNormFeel);
...
...
@@ -1366,9 +1333,9 @@ VLCView::Pulse()
}
/*****************************************************************************
* VLCVIew::Key
Down
* VLCVIew::Key
Up
*****************************************************************************/
void
VLCView
::
Key
Down
(
const
char
*
bytes
,
int32
numBytes
)
void
VLCView
::
Key
Up
(
const
char
*
bytes
,
int32
numBytes
)
{
if
(
numBytes
<
1
)
{
...
...
@@ -1376,9 +1343,13 @@ void VLCView::KeyDown( const char *bytes, int32 numBytes )
}
uint32_t
mods
=
modifiers
();
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
ConvertKeyToVLC
(
*
bytes
);
if
(
mods
&
B_COMMAND_KEY
)
{
val
.
i_int
|=
KEY_MODIFIER_ALT
;
}
if
(
mods
&
B_SHIFT_KEY
)
{
val
.
i_int
|=
KEY_MODIFIER_SHIFT
;
...
...
modules/gui/beos/VideoWindow.h
View file @
6f8690b5
...
...
@@ -2,7 +2,7 @@
* VideoWindow.h: BeOS video window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: VideoWindow.h,v 1.1
0 2003/12/22 11:14:25
titer Exp $
* $Id: VideoWindow.h,v 1.1
1 2003/12/28 01:49:12
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au>
...
...
@@ -117,7 +117,7 @@ class VLCView : public BView
const
BMessage
*
dragMessage
);
virtual
void
Pulse
();
virtual
void
Draw
(
BRect
updateRect
);
virtual
void
Key
Down
(
const
char
*
bytes
,
int32
numBytes
);
virtual
void
Key
Up
(
const
char
*
bytes
,
int32
numBytes
);
private:
vout_thread_t
*
p_vout
;
...
...
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