Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
89fe0a3f
Commit
89fe0a3f
authored
Feb 09, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Implement GetBufferedPaintTargetRect().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f9842ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
buffer.c
dlls/uxtheme/buffer.c
+13
-3
system.c
dlls/uxtheme/tests/system.c
+7
-3
No files found.
dlls/uxtheme/buffer.c
View file @
89fe0a3f
...
...
@@ -223,10 +223,20 @@ HDC WINAPI GetBufferedPaintTargetDC(HPAINTBUFFER bufferhandle)
/***********************************************************************
* GetBufferedPaintTargetRect (UXTHEME.@)
*/
HRESULT
WINAPI
GetBufferedPaintTargetRect
(
HPAINTBUFFER
hBufferedPaint
,
RECT
*
prc
)
HRESULT
WINAPI
GetBufferedPaintTargetRect
(
HPAINTBUFFER
bufferhandle
,
RECT
*
rect
)
{
FIXME
(
"Stub (%p %p)
\n
"
,
hBufferedPaint
,
prc
);
return
E_NOTIMPL
;
struct
paintbuffer
*
buffer
=
get_buffer_obj
(
bufferhandle
);
TRACE
(
"(%p %p)
\n
"
,
buffer
,
rect
);
if
(
!
rect
)
return
E_POINTER
;
if
(
!
buffer
)
return
E_FAIL
;
*
rect
=
buffer
->
rect
;
return
S_OK
;
}
/***********************************************************************
...
...
dlls/uxtheme/tests/system.c
View file @
89fe0a3f
...
...
@@ -619,16 +619,20 @@ todo_wine
hdc
=
pGetBufferedPaintTargetDC
(
buffer
);
ok
(
hdc
==
target
,
"Unexpected target hdc %p, original %p
\n
"
,
hdc
,
target
);
hr
=
pGetBufferedPaintTargetRect
(
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected return code %#x
\n
"
,
hr
);
hr
=
pGetBufferedPaintTargetRect
(
buffer
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"Unexpected return code %#x
\n
"
,
hr
);
hr
=
pGetBufferedPaintTargetRect
(
NULL
,
&
rect2
);
ok
(
hr
==
E_FAIL
,
"Unexpected return code %#x
\n
"
,
hr
);
SetRectEmpty
(
&
rect2
);
hr
=
pGetBufferedPaintTargetRect
(
buffer
,
&
rect2
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Unexpected return code %#x
\n
"
,
hr
);
ok
(
EqualRect
(
&
rect
,
&
rect2
),
"Wrong target rect
\n
"
);
}
hr
=
pEndBufferedPaint
(
buffer
,
FALSE
);
ok
(
hr
==
S_OK
,
"Unexpected return code %#x
\n
"
,
hr
);
...
...
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