Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9d4a0039
Commit
9d4a0039
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 EndBufferedPaint().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
35ae7c8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
buffer.c
dlls/uxtheme/buffer.c
+26
-2
No files found.
dlls/uxtheme/buffer.c
View file @
9d4a0039
...
...
@@ -49,6 +49,13 @@ static void free_paintbuffer(struct paintbuffer *buffer)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
}
static
struct
paintbuffer
*
get_buffer_obj
(
HPAINTBUFFER
handle
)
{
if
(
!
handle
)
return
NULL
;
return
handle
;
}
/***********************************************************************
* BufferedPaintInit (UXTHEME.@)
*/
...
...
@@ -138,9 +145,26 @@ HPAINTBUFFER WINAPI BeginBufferedPaint(HDC targetdc, const RECT *rect,
/***********************************************************************
* EndBufferedPaint (UXTHEME.@)
*/
HRESULT
WINAPI
EndBufferedPaint
(
HPAINTBUFFER
hPaintBuffer
,
BOOL
fUpdateTarget
)
HRESULT
WINAPI
EndBufferedPaint
(
HPAINTBUFFER
bufferhandle
,
BOOL
update
)
{
FIXME
(
"Stub (%p %d)
\n
"
,
hPaintBuffer
,
fUpdateTarget
);
struct
paintbuffer
*
buffer
=
get_buffer_obj
(
bufferhandle
);
TRACE
(
"(%p %d)
\n
"
,
bufferhandle
,
update
);
if
(
!
buffer
)
return
E_INVALIDARG
;
if
(
update
)
{
if
(
!
BitBlt
(
buffer
->
targetdc
,
buffer
->
rect
.
left
,
buffer
->
rect
.
top
,
buffer
->
rect
.
right
-
buffer
->
rect
.
left
,
buffer
->
rect
.
bottom
-
buffer
->
rect
.
top
,
buffer
->
memorydc
,
0
,
0
,
SRCCOPY
))
{
WARN
(
"BitBlt() failed
\n
"
);
}
}
free_paintbuffer
(
buffer
);
return
S_OK
;
}
...
...
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