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
b557cb42
Commit
b557cb42
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 GetBufferedPaintBits().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89fe0a3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
buffer.c
dlls/uxtheme/buffer.c
+15
-4
system.c
dlls/uxtheme/tests/system.c
+1
-2
No files found.
dlls/uxtheme/buffer.c
View file @
b557cb42
...
...
@@ -189,11 +189,22 @@ HRESULT WINAPI BufferedPaintSetAlpha(HPAINTBUFFER hBufferedPaint, const RECT *pr
/***********************************************************************
* GetBufferedPaintBits (UXTHEME.@)
*/
HRESULT
WINAPI
GetBufferedPaintBits
(
HPAINTBUFFER
hBufferedPaint
,
RGBQUAD
**
ppbBuffer
,
int
*
pcxRow
)
HRESULT
WINAPI
GetBufferedPaintBits
(
HPAINTBUFFER
bufferhandle
,
RGBQUAD
**
bits
,
int
*
width
)
{
FIXME
(
"Stub (%p %p %p)
\n
"
,
hBufferedPaint
,
ppbBuffer
,
pcxRow
);
return
E_NOTIMPL
;
struct
paintbuffer
*
buffer
=
get_buffer_obj
(
bufferhandle
);
TRACE
(
"(%p %p %p)
\n
"
,
buffer
,
bits
,
width
);
if
(
!
bits
||
!
width
)
return
E_POINTER
;
if
(
!
buffer
||
!
buffer
->
bits
)
return
E_FAIL
;
*
bits
=
buffer
->
bits
;
*
width
=
buffer
->
rect
.
right
-
buffer
->
rect
.
left
;
return
S_OK
;
}
/***********************************************************************
...
...
dlls/uxtheme/tests/system.c
View file @
b557cb42
...
...
@@ -648,7 +648,6 @@ todo_wine
bits
=
NULL
;
row
=
0
;
hr
=
pGetBufferedPaintBits
(
buffer
,
&
bits
,
&
row
);
todo_wine
{
if
(
format
==
BPBF_COMPATIBLEBITMAP
)
ok
(
hr
==
E_FAIL
,
"Unexpected return code %#x
\n
"
,
hr
);
else
...
...
@@ -657,7 +656,7 @@ todo_wine {
ok
(
bits
!=
NULL
,
"Bitmap bits %p
\n
"
,
bits
);
ok
(
row
>
0
,
"Bitmap width %d
\n
"
,
row
);
}
}
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