Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5b9ea47e
Commit
5b9ea47e
authored
Apr 18, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Under BeOS, disable the screensaver if playing in fullscreen.
parent
1a4cc4bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
configure.ac.in
configure.ac.in
+1
-1
modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoOutput.cpp
+16
-2
No files found.
configure.ac.in
View file @
5b9ea47e
...
@@ -153,7 +153,7 @@ case "x${target_os}" in
...
@@ -153,7 +153,7 @@ case "x${target_os}" in
CXXFLAGS_save="${CXXFLAGS_save} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CXXFLAGS="${CXXFLAGS_save}"
CXXFLAGS_save="${CXXFLAGS_save} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CXXFLAGS="${CXXFLAGS_save}"
LDFLAGS_vlc="${LDFLAGS_vlc} -lbe"
LDFLAGS_vlc="${LDFLAGS_vlc} -lbe"
LDFLAGS_plugins="${LDFLAGS_plugins} -nostart"
LDFLAGS_plugins="${LDFLAGS_plugins} -nostart"
LDFLAGS_beos="${LDFLAGS_beos} -lbe -lmedia -lroot -ltracker -lstdc++.r4 -ltranslation"
LDFLAGS_beos="${LDFLAGS_beos} -lbe -lmedia -lroot -ltracker -lstdc++.r4 -ltranslation
-lgame
"
dnl BONE or not BONE ? only BONE has libbind.so
dnl BONE or not BONE ? only BONE has libbind.so
AC_CHECK_LIB( bind, inet_ntoa,
AC_CHECK_LIB( bind, inet_ntoa,
[ LDFLAGS_access_mms="${LDFLAGS_access_mms} -lsocket -lbind"
[ LDFLAGS_access_mms="${LDFLAGS_access_mms} -lsocket -lbind"
...
...
modules/gui/beos/VideoOutput.cpp
View file @
5b9ea47e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
* vout_beos.cpp: beos video output display method
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: VideoOutput.cpp,v 1.1
4 2003/04/18 16:10:2
8 titer Exp $
* $Id: VideoOutput.cpp,v 1.1
5 2003/04/18 16:38:5
8 titer 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,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include <NodeInfo.h>
#include <NodeInfo.h>
#include <String.h>
#include <String.h>
#include <TranslatorRoster.h>
#include <TranslatorRoster.h>
#include <WindowScreen.h>
/* VLC headers */
/* VLC headers */
#include <vlc/vlc.h>
#include <vlc/vlc.h>
...
@@ -1224,6 +1225,7 @@ VLCView::Pulse()
...
@@ -1224,6 +1225,7 @@ VLCView::Pulse()
// We are getting the pulse messages no matter if the mouse is over
// We are getting the pulse messages no matter if the mouse is over
// this view. If we are in full screen mode, we want to hide the cursor
// this view. If we are in full screen mode, we want to hide the cursor
// even if it is not.
// even if it is not.
VideoWindow
*
videoWindow
=
dynamic_cast
<
VideoWindow
*>
(
Window
());
if
(
!
fCursorHidden
)
if
(
!
fCursorHidden
)
{
{
if
(
fCursorInside
if
(
fCursorInside
...
@@ -1231,12 +1233,24 @@ VLCView::Pulse()
...
@@ -1231,12 +1233,24 @@ VLCView::Pulse()
{
{
be_app
->
ObscureCursor
();
be_app
->
ObscureCursor
();
fCursorHidden
=
true
;
fCursorHidden
=
true
;
VideoWindow
*
videoWindow
=
dynamic_cast
<
VideoWindow
*>
(
Window
());
// hide the interface window as well if full screen
// hide the interface window as well if full screen
if
(
videoWindow
&&
videoWindow
->
IsFullScreen
())
if
(
videoWindow
&&
videoWindow
->
IsFullScreen
())
videoWindow
->
SetInterfaceShowing
(
false
);
videoWindow
->
SetInterfaceShowing
(
false
);
}
}
}
}
// Workaround to disable the screensaver in full screen:
// we simulate an activity every 29 seconds
if
(
videoWindow
&&
videoWindow
->
IsFullScreen
()
&&
system_time
()
-
fLastMouseMovedTime
>
29000000
)
{
BPoint
where
;
uint32
buttons
;
GetMouse
(
&
where
,
&
buttons
,
false
);
ConvertToScreen
(
&
where
);
set_mouse_position
((
int32
)
where
.
x
,
(
int32
)
where
.
y
);
}
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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