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
ef676d6d
Commit
ef676d6d
authored
Mar 17, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a null driver entry point for PatBlt.
parent
8e396a94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
31 deletions
+20
-31
bitblt.c
dlls/gdi32/bitblt.c
+14
-30
driver.c
dlls/gdi32/driver.c
+6
-1
No files found.
dlls/gdi32/bitblt.c
View file @
ef676d6d
...
...
@@ -43,28 +43,21 @@ static inline BOOL rop_uses_src( DWORD rop )
/***********************************************************************
* PatBlt (GDI32.@)
*/
BOOL
WINAPI
PatBlt
(
HDC
hdc
,
INT
left
,
INT
top
,
INT
width
,
INT
height
,
DWORD
rop
)
BOOL
WINAPI
PatBlt
(
HDC
hdc
,
INT
left
,
INT
top
,
INT
width
,
INT
height
,
DWORD
rop
)
{
DC
*
dc
;
BOOL
bRet
=
FALSE
;
if
(
rop_uses_src
(
rop
))
return
FALSE
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
FALSE
;
TRACE
(
"%p %d,%d %dx%d %06x
\n
"
,
hdc
,
left
,
top
,
width
,
height
,
rop
);
if
(
dc
->
funcs
->
pPatBlt
)
{
update_dc
(
dc
);
bRet
=
dc
->
funcs
->
pPatBlt
(
dc
->
physDev
,
left
,
top
,
width
,
height
,
rop
);
}
else
if
(
dc
->
funcs
->
pStretchBlt
)
if
(
rop_uses_src
(
rop
))
return
FALSE
;
if
((
dc
=
get_dc_ptr
(
hdc
)))
{
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pPatBlt
);
update_dc
(
dc
);
bRet
=
dc
->
funcs
->
pStretchBlt
(
dc
->
physDev
,
left
,
top
,
width
,
height
,
NULL
,
0
,
0
,
0
,
0
,
rop
);
bRet
=
physdev
->
funcs
->
pPatBlt
(
physdev
,
left
,
top
,
width
,
height
,
rop
);
release_dc_ptr
(
dc
);
}
release_dc_ptr
(
dc
);
return
bRet
;
}
...
...
@@ -78,18 +71,15 @@ BOOL WINAPI BitBlt( HDC hdcDst, INT xDst, INT yDst, INT width,
BOOL
ret
=
FALSE
;
DC
*
dcDst
,
*
dcSrc
;
if
(
!
rop_uses_src
(
rop
))
return
PatBlt
(
hdcDst
,
xDst
,
yDst
,
width
,
height
,
rop
);
TRACE
(
"hdcSrc=%p %d,%d -> hdcDest=%p %d,%d %dx%d rop=%06x
\n
"
,
hdcSrc
,
xSrc
,
ySrc
,
hdcDst
,
xDst
,
yDst
,
width
,
height
,
rop
);
if
(
!
(
dcDst
=
get_dc_ptr
(
hdcDst
)))
return
FALSE
;
update_dc
(
dcDst
);
if
(
!
rop_uses_src
(
rop
)
&&
dcDst
->
funcs
->
pPatBlt
)
{
ret
=
dcDst
->
funcs
->
pPatBlt
(
dcDst
->
physDev
,
xDst
,
yDst
,
width
,
height
,
rop
);
release_dc_ptr
(
dcDst
);
}
else
if
(
dcDst
->
funcs
->
pBitBlt
||
dcDst
->
funcs
->
pStretchBlt
)
if
(
dcDst
->
funcs
->
pBitBlt
||
dcDst
->
funcs
->
pStretchBlt
)
{
dcSrc
=
get_dc_ptr
(
hdcSrc
);
if
(
dcSrc
)
update_dc
(
dcSrc
);
...
...
@@ -158,15 +148,14 @@ BOOL WINAPI BitBlt( HDC hdcDst, INT xDst, INT yDst, INT width,
/***********************************************************************
* StretchBlt (GDI32.@)
*/
BOOL
WINAPI
StretchBlt
(
HDC
hdcDst
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
HDC
hdcSrc
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
DWORD
rop
)
BOOL
WINAPI
StretchBlt
(
HDC
hdcDst
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
HDC
hdcSrc
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
DWORD
rop
)
{
BOOL
ret
=
FALSE
;
DC
*
dcDst
,
*
dcSrc
;
if
(
!
rop_uses_src
(
rop
))
return
PatBlt
(
hdcDst
,
xDst
,
yDst
,
widthDst
,
heightDst
,
rop
);
TRACE
(
"%p %d,%d %dx%d -> %p %d,%d %dx%d rop=%06x
\n
"
,
hdcSrc
,
xSrc
,
ySrc
,
widthSrc
,
heightSrc
,
hdcDst
,
xDst
,
yDst
,
widthDst
,
heightDst
,
rop
);
...
...
@@ -175,12 +164,7 @@ BOOL WINAPI StretchBlt( HDC hdcDst, INT xDst, INT yDst,
if
(
!
(
dcDst
=
get_dc_ptr
(
hdcDst
)))
return
FALSE
;
update_dc
(
dcDst
);
if
(
!
rop_uses_src
(
rop
)
&&
dcDst
->
funcs
->
pPatBlt
)
{
ret
=
dcDst
->
funcs
->
pPatBlt
(
dcDst
->
physDev
,
xDst
,
yDst
,
widthDst
,
heightDst
,
rop
);
release_dc_ptr
(
dcDst
);
}
else
if
(
dcDst
->
funcs
->
pStretchBlt
)
if
(
dcDst
->
funcs
->
pStretchBlt
)
{
if
((
dcSrc
=
get_dc_ptr
(
hdcSrc
)))
{
...
...
dlls/gdi32/driver.c
View file @
ef676d6d
...
...
@@ -514,6 +514,11 @@ static BOOL CDECL nulldrv_PaintRgn( PHYSDEV dev, HRGN rgn )
return
TRUE
;
}
static
BOOL
CDECL
nulldrv_PatBlt
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
INT
width
,
INT
height
,
DWORD
rop
)
{
return
TRUE
;
}
static
BOOL
CDECL
nulldrv_Pie
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
{
...
...
@@ -839,7 +844,7 @@ const DC_FUNCTIONS null_driver =
nulldrv_OffsetViewportOrgEx
,
/* pOffsetViewportOrg */
nulldrv_OffsetWindowOrgEx
,
/* pOffsetWindowOrg */
nulldrv_PaintRgn
,
/* pPaintRgn */
NULL
,
/* pPatBlt */
nulldrv_PatBlt
,
/* pPatBlt */
nulldrv_Pie
,
/* pPie */
nulldrv_PolyBezier
,
/* pPolyBezier */
nulldrv_PolyBezierTo
,
/* pPolyBezierTo */
...
...
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