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
01c453a9
Commit
01c453a9
authored
Mar 29, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlcshell.cpp: compile fix
parent
2d3624ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+12
-12
No files found.
mozilla/vlcshell.cpp
View file @
01c453a9
...
...
@@ -460,7 +460,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
UpdateWindow
(
(
HWND
)
drawable
);
}
}
else
if
(
curwin
->
window
)
else
if
(
curwin
.
window
)
{
/* reset WNDPROC */
HWND
oldwin
=
(
HWND
)
curwin
.
window
;
...
...
@@ -468,7 +468,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
p_plugin
->
setWindowProc
(
NULL
);
/* change/set parent */
libvlc_video_set_parent
(
p_vlc
,
0
,
NULL
);
curwin
->
window
=
NULL
;
curwin
.
window
=
NULL
;
}
#endif
/* XP_WIN */
...
...
@@ -476,7 +476,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
if
(
window
&&
window
->
window
)
{
Window
drawable
=
(
Window
)
window
->
window
;
if
(
!
curwin
->
window
||
drawable
!=
(
Window
)
curwin
->
window
)
if
(
!
curwin
.
window
||
drawable
!=
(
Window
)
curwin
.
window
)
{
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
->
ws_info
)
->
display
;
...
...
@@ -495,11 +495,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
Redraw
(
w
,
(
XtPointer
)
p_plugin
,
NULL
);
}
}
else
if
(
curwin
->
window
)
else
if
(
curwin
.
window
)
{
/* change/set parent */
libvlc_video_set_parent
(
p_vlc
,
0
,
NULL
);
curwin
->
window
=
NULL
;
curwin
.
window
=
NULL
;
}
#endif
/* XP_UNIX */
...
...
@@ -726,19 +726,19 @@ static void Redraw( Widget w, XtPointer closure, XEvent *event )
XGCValues
gcv
;
Window
drawable
=
(
Window
)
window
.
window
;
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
->
ws_info
)
->
display
;
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
.
ws_info
)
->
display
;
gcv
.
foreground
=
BlackPixel
(
p_display
,
0
);
gc
=
XCreateGC
(
p_display
,
drawable
,
GCForeground
,
&
gcv
);
XFillRectangle
(
p_display
,
drawable
,
gc
,
0
,
0
,
window
->
width
,
window
->
height
);
0
,
0
,
window
.
width
,
window
.
height
);
gcv
.
foreground
=
WhitePixel
(
p_display
,
0
);
XChangeGC
(
p_display
,
gc
,
GCForeground
,
&
gcv
);
XDrawString
(
p_display
,
drawable
,
gc
,
window
->
width
/
2
-
40
,
window
->
height
/
2
,
window
.
width
/
2
-
40
,
window
.
height
/
2
,
WINDOW_TEXT
,
strlen
(
WINDOW_TEXT
)
);
XFreeGC
(
p_display
,
gc
);
...
...
@@ -749,7 +749,7 @@ static void Resize ( Widget w, XtPointer closure, XEvent *event )
VlcPlugin
*
p_plugin
=
reinterpret_cast
<
VlcPlugin
*>
(
closure
);
const
NPWindow
&
window
=
p_plugin
->
getWindow
();
Window
drawable
=
(
Window
)
window
.
window
;
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
->
ws_info
)
->
display
;
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
.
ws_info
)
->
display
;
int
i_ret
;
Window
root_return
,
parent_return
,
*
children_return
;
...
...
@@ -768,14 +768,14 @@ static void Resize ( Widget w, XtPointer closure, XEvent *event )
}
#endif
/* X11_RESIZE_DEBUG */
if
(
!
p_plugin
->
setSize
(
window
->
width
,
window
->
height
)
)
if
(
!
p_plugin
->
setSize
(
window
.
width
,
window
.
height
)
)
{
/* size already set */
return
;
}
i_ret
=
XResizeWindow
(
p_display
,
drawable
,
window
->
width
,
window
->
height
);
i_ret
=
XResizeWindow
(
p_display
,
drawable
,
window
.
width
,
window
.
height
);
#ifdef X11_RESIZE_DEBUG
fprintf
(
stderr
,
...
...
@@ -807,7 +807,7 @@ static void Resize ( Widget w, XtPointer closure, XEvent *event )
#endif
/* X11_RESIZE_DEBUG */
i_ret
=
XResizeWindow
(
p_display
,
base_window
,
window
->
width
,
window
->
height
);
window
.
width
,
window
.
height
);
#ifdef X11_RESIZE_DEBUG
fprintf
(
stderr
,
...
...
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