Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
91cea3e3
Commit
91cea3e3
authored
Apr 02, 2002
by
Tony Castley
Browse files
Added a test for the nooverlay option.
parent
87b73190
Changes
1
Hide whitespace changes
Inline
Side-by-side
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/0
1 05:49:0
0 tcastley Exp $
* $Id: vout_beos.cpp,v 1.5
1
2002/04/0
2 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
Supports
Markdown
0%
Try again
or
attach a new 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