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
b203d305
Commit
b203d305
authored
Nov 11, 2005
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: backport of r13193
parent
38702aac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
activex/oleobject.cpp
activex/oleobject.cpp
+11
-6
activex/plugin.cpp
activex/plugin.cpp
+2
-2
No files found.
activex/oleobject.cpp
View file @
b203d305
...
@@ -142,6 +142,12 @@ HRESULT VLCOleObject::doInPlaceActivate(LPMSG lpMsg, LPOLECLIENTSITE pActiveSite
...
@@ -142,6 +142,12 @@ HRESULT VLCOleObject::doInPlaceActivate(LPMSG lpMsg, LPOLECLIENTSITE pActiveSite
{
{
return
OLEOBJ_S_INVALIDHWND
;
return
OLEOBJ_S_INVALIDHWND
;
}
}
else
if
(
NULL
==
lprcPosRect
)
{
SetRect
(
&
posRect
,
0
,
0
,
0
,
0
);
lprcPosRect
=
&
posRect
;
lprcClipRect
=
&
posRect
;
}
if
(
FAILED
(
_p_instance
->
onActivateInPlace
(
lpMsg
,
hwndParent
,
lprcPosRect
,
lprcClipRect
))
)
if
(
FAILED
(
_p_instance
->
onActivateInPlace
(
lpMsg
,
hwndParent
,
lprcPosRect
,
lprcClipRect
))
)
{
{
...
@@ -150,18 +156,16 @@ HRESULT VLCOleObject::doInPlaceActivate(LPMSG lpMsg, LPOLECLIENTSITE pActiveSite
...
@@ -150,18 +156,16 @@ HRESULT VLCOleObject::doInPlaceActivate(LPMSG lpMsg, LPOLECLIENTSITE pActiveSite
return
OLEOBJ_S_CANNOT_DOVERB_NOW
;
return
OLEOBJ_S_CANNOT_DOVERB_NOW
;
}
}
if
(
NULL
!=
p_inPlaceSite
)
p_inPlaceSite
->
OnPosRectChange
(
lprcPosRect
);
pActiveSite
->
ShowObject
();
_p_instance
->
setVisible
(
TRUE
);
if
(
NULL
!=
p_inPlaceSite
)
if
(
NULL
!=
p_inPlaceSite
)
{
{
p_inPlaceSite
->
OnInPlaceActivate
();
p_inPlaceSite
->
OnInPlaceActivate
();
p_inPlaceSite
->
OnPosRectChange
(
lprcPosRect
);
p_inPlaceSite
->
Release
();
p_inPlaceSite
->
Release
();
}
}
pActiveSite
->
ShowObject
();
_p_instance
->
setVisible
(
TRUE
);
if
(
NULL
!=
lpMsg
)
if
(
NULL
!=
lpMsg
)
{
{
switch
(
lpMsg
->
message
)
switch
(
lpMsg
->
message
)
...
@@ -331,6 +335,7 @@ STDMETHODIMP VLCOleObject::SetExtent(DWORD dwDrawAspect, SIZEL *pSizel)
...
@@ -331,6 +335,7 @@ STDMETHODIMP VLCOleObject::SetExtent(DWORD dwDrawAspect, SIZEL *pSizel)
if
(
NULL
==
pSizel
)
if
(
NULL
==
pSizel
)
return
E_POINTER
;
return
E_POINTER
;
if
(
dwDrawAspect
&
DVASPECT_CONTENT
)
if
(
dwDrawAspect
&
DVASPECT_CONTENT
)
{
{
_p_instance
->
setExtent
(
*
pSizel
);
_p_instance
->
setExtent
(
*
pSizel
);
...
...
activex/plugin.cpp
View file @
b203d305
...
@@ -984,9 +984,9 @@ void VLCPlugin::onPositionChange(LPCRECT lprcPosRect, LPCRECT lprcClipRect)
...
@@ -984,9 +984,9 @@ void VLCPlugin::onPositionChange(LPCRECT lprcPosRect, LPCRECT lprcClipRect)
//RedrawWindow(_videownd, &posRect, NULL, RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);
//RedrawWindow(_videownd, &posRect, NULL, RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
posRect
.
right
-
posRect
.
left
;
val
.
i_int
=
posRect
.
right
-
posRect
.
left
;
VLC_VariableSet
(
_i_vlc
,
"width"
,
val
);
VLC_VariableSet
(
_i_vlc
,
"
conf::
width"
,
val
);
val
.
i_int
=
posRect
.
bottom
-
posRect
.
top
;
val
.
i_int
=
posRect
.
bottom
-
posRect
.
top
;
VLC_VariableSet
(
_i_vlc
,
"height"
,
val
);
VLC_VariableSet
(
_i_vlc
,
"
conf::
height"
,
val
);
};
};
void
VLCPlugin
::
freezeEvents
(
BOOL
freeze
)
void
VLCPlugin
::
freezeEvents
(
BOOL
freeze
)
...
...
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