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
91cea3e3
Commit
91cea3e3
authored
Apr 02, 2002
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test for the nooverlay option.
parent
87b73190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
plugins/beos/vout_beos.cpp
plugins/beos/vout_beos.cpp
+10
-5
No files found.
plugins/beos/vout_beos.cpp
View file @
91cea3e3
...
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: vout_beos.cpp,v 1.5
0 2002/04/01 05:49:0
0 tcastley Exp $
* $Id: vout_beos.cpp,v 1.5
1 2002/04/02 10:44:4
0 tcastley Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -232,15 +232,15 @@ void VideoWindow::FrameResized( float width, float height )
if
(
width_scale
<=
height_scale
)
{
out_width
=
i_width
*
width_scale
;
out_height
=
i_height
*
width_scale
;
out_width
=
(
i_width
*
width_scale
)
;
out_height
=
(
i_height
*
width_scale
)
;
out_left
=
0
;
out_top
=
(
height
-
out_height
)
/
2
;
}
else
/* if the height is proportionally smaller */
{
out_width
=
i_width
*
height_scale
;
out_height
=
i_height
*
height_scale
;
out_width
=
(
i_width
*
height_scale
)
;
out_height
=
(
i_height
*
height_scale
)
;
out_top
=
0
;
out_left
=
(
width
-
out_width
)
/
2
;
}
...
...
@@ -281,14 +281,19 @@ int VideoWindow::SelectDrawingMode(int width, int height)
{
int
drawingMode
=
BITMAP
;
int
noOverlay
=
config_GetIntVariable
(
"nooverlay"
);
for
(
int
i
=
0
;
i
<
COLOR_COUNT
;
i
++
)
{
if
(
noOverlay
)
break
;
overlaybitmap
=
new
BBitmap
(
BRect
(
0
,
0
,
width
,
height
),
B_BITMAP_WILL_OVERLAY
|
B_BITMAP_RESERVE_OVERLAY_CHANNEL
,
colspace
[
i
].
colspace
);
if
(
overlaybitmap
&&
overlaybitmap
->
InitCheck
()
==
B_OK
)
{
overlay_restrictions
r
;
overlaybitmap
->
GetOverlayRestrictions
(
&
r
);
drawingMode
=
OVERLAY
;
colspace_index
=
i
;
memset
(
overlaybitmap
->
Bits
(),
0
,
overlaybitmap
->
BitsLength
());
...
...
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