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
00a3f0e4
Commit
00a3f0e4
authored
Aug 25, 2003
by
Simon Latapie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* put the beautiful "no picture" black screen.
parent
fb88af7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+9
-2
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+22
-3
No files found.
modules/gui/macosx/vout.m
View file @
00a3f0e4
...
...
@@ -3,7 +3,7 @@
* vout.m: MacOS X video output plugin
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: vout.m,v 1.5
4 2003/08/20 16:22:2
7 garf Exp $
* $Id: vout.m,v 1.5
5 2003/08/25 14:51:4
7 garf Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -486,10 +486,13 @@ static void vout_Display( vout_thread_t *p_vout, picture_t *p_pic )
GetPortBounds
(
p_vout
->
p_sys
->
p_qdportold
,
&
oldrect
);
GetClip
(
oldClip
);
LockPortBits
(
p_vout
->
p_sys
->
p_qdport
);
SetPort
(
p_vout
->
p_sys
->
p_qdport
);
SetOrigin
(
p_vout
->
p_sys
->
portx
,
p_vout
->
p_sys
->
porty
);
ClipRect
(
&
p_vout
->
p_sys
->
rect
);
if
(
(
err
=
DecompressSequenceFrameS
(
p_vout
->
p_sys
->
i_seq
,
p_pic
->
p_sys
->
p_info
,
...
...
@@ -503,9 +506,13 @@ static void vout_Display( vout_thread_t *p_vout, picture_t *p_pic )
QDFlushPortBuffer
(
p_vout
->
p_sys
->
p_qdport
,
p_vout
->
p_sys
->
mask
);
}
SetOrigin
(
oldrect
.
left
,
oldrect
.
top
);
SetClip
(
oldClip
);
SetPort
(
p_vout
->
p_sys
->
p_qdportold
);
UnlockPortBits
(
p_vout
->
p_sys
->
p_qdport
);
}
else
{
...
...
mozilla/vlcshell.cpp
View file @
00a3f0e4
...
...
@@ -2,7 +2,7 @@
* vlcshell.cpp: a VLC plugin for Mozilla
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: vlcshell.cpp,v 1.1
8 2003/08/19 14:07:51
garf Exp $
* $Id: vlcshell.cpp,v 1.1
9 2003/08/25 14:51:49
garf Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -47,7 +47,7 @@
#ifdef XP_MACOSX
/* Mac OS X stuff */
# include <Quick
D
raw.h>
# include <Quick
d
raw.h>
#endif
#include "vlcpeer.h"
...
...
@@ -208,7 +208,6 @@ int16 NPP_HandleEvent( NPP instance, void * event )
{
value
.
i_int
=
1
;
VLC_Set
(
p_plugin
->
i_vlc
,
"drawableredraw"
,
value
);
return
true
;
}
...
...
@@ -413,6 +412,8 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
vlc_value_t
valuer
;
vlc_value_t
valueportx
;
vlc_value_t
valueporty
;
Rect
black_rect
;
char
*
text
;
#endif
if
(
instance
==
NULL
)
...
...
@@ -454,6 +455,24 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
p_plugin
->
window
=
window
;
/* draw the beautiful "No Picture" */
black_rect
.
top
=
valuet
.
i_int
-
valuey
.
i_int
;
black_rect
.
left
=
valuel
.
i_int
-
valuex
.
i_int
;
black_rect
.
bottom
=
valueb
.
i_int
-
valuey
.
i_int
;
black_rect
.
right
=
valuer
.
i_int
-
valuex
.
i_int
;
SetPort
(
value
.
i_int
);
SetOrigin
(
valueportx
.
i_int
,
valueporty
.
i_int
);
ForeColor
(
blackColor
);
PenMode
(
patCopy
);
PaintRect
(
&
black_rect
);
ForeColor
(
whiteColor
);
text
=
strdup
(
WINDOW_TEXT
);
MoveTo
(
valuew
.
i_int
/
2
-
40
,
valueh
.
i_int
/
2
);
DrawText
(
text
,
0
,
strlen
(
text
)
);
#else
/* FIXME: this cast sucks */
value
.
i_int
=
(
int
)
(
ptrdiff_t
)
(
void
*
)
window
->
window
;
...
...
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