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
22f920df
Commit
22f920df
authored
Mar 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add null driver entry points for the print spooler functions.
parent
7e3a8714
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
30 deletions
+63
-30
driver.c
dlls/gdi32/driver.c
+30
-5
printdrv.c
dlls/gdi32/printdrv.c
+33
-25
No files found.
dlls/gdi32/driver.c
View file @
22f920df
...
@@ -312,6 +312,11 @@ done:
...
@@ -312,6 +312,11 @@ done:
}
}
static
INT
CDECL
nulldrv_AbortDoc
(
PHYSDEV
dev
)
{
return
0
;
}
static
BOOL
CDECL
nulldrv_Arc
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
static
BOOL
CDECL
nulldrv_Arc
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
{
{
...
@@ -329,6 +334,16 @@ static BOOL CDECL nulldrv_Ellipse( PHYSDEV dev, INT left, INT top, INT right, IN
...
@@ -329,6 +334,16 @@ static BOOL CDECL nulldrv_Ellipse( PHYSDEV dev, INT left, INT top, INT right, IN
return
TRUE
;
return
TRUE
;
}
}
static
INT
CDECL
nulldrv_EndDoc
(
PHYSDEV
dev
)
{
return
0
;
}
static
INT
CDECL
nulldrv_EndPage
(
PHYSDEV
dev
)
{
return
0
;
}
static
BOOL
CDECL
nulldrv_ExtFloodFill
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
COLORREF
color
,
UINT
type
)
static
BOOL
CDECL
nulldrv_ExtFloodFill
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
COLORREF
color
,
UINT
type
)
{
{
return
TRUE
;
return
TRUE
;
...
@@ -398,9 +413,19 @@ static COLORREF CDECL nulldrv_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF colo
...
@@ -398,9 +413,19 @@ static COLORREF CDECL nulldrv_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF colo
return
color
;
return
color
;
}
}
static
INT
CDECL
nulldrv_StartDoc
(
PHYSDEV
dev
,
const
DOCINFOW
*
info
)
{
return
0
;
}
static
INT
CDECL
nulldrv_StartPage
(
PHYSDEV
dev
)
{
return
1
;
}
const
DC_FUNCTIONS
null_driver
=
const
DC_FUNCTIONS
null_driver
=
{
{
NULL
,
/* pAbortDoc */
nulldrv_AbortDoc
,
/* pAbortDoc */
NULL
,
/* pAbortPath */
NULL
,
/* pAbortPath */
NULL
,
/* pAlphaBlend */
NULL
,
/* pAlphaBlend */
nulldrv_AngleArc
,
/* pAngleArc */
nulldrv_AngleArc
,
/* pAngleArc */
...
@@ -420,8 +445,8 @@ const DC_FUNCTIONS null_driver =
...
@@ -420,8 +445,8 @@ const DC_FUNCTIONS null_driver =
NULL
,
/* pDescribePixelFormat */
NULL
,
/* pDescribePixelFormat */
NULL
,
/* pDeviceCapabilities */
NULL
,
/* pDeviceCapabilities */
nulldrv_Ellipse
,
/* pEllipse */
nulldrv_Ellipse
,
/* pEllipse */
NULL
,
/* pEndDoc */
nulldrv_EndDoc
,
/* pEndDoc */
NULL
,
/* pEndPage */
nulldrv_EndPage
,
/* pEndPage */
NULL
,
/* pEndPath */
NULL
,
/* pEndPath */
NULL
,
/* pEnumICMProfiles */
NULL
,
/* pEnumICMProfiles */
NULL
,
/* pEnumDeviceFonts */
NULL
,
/* pEnumDeviceFonts */
...
@@ -510,8 +535,8 @@ const DC_FUNCTIONS null_driver =
...
@@ -510,8 +535,8 @@ const DC_FUNCTIONS null_driver =
NULL
,
/* pSetWindowExt */
NULL
,
/* pSetWindowExt */
NULL
,
/* pSetWindowOrg */
NULL
,
/* pSetWindowOrg */
NULL
,
/* pSetWorldTransform */
NULL
,
/* pSetWorldTransform */
NULL
,
/* pStartDoc */
nulldrv_StartDoc
,
/* pStartDoc */
NULL
,
/* pStartPage */
nulldrv_StartPage
,
/* pStartPage */
NULL
,
/* pStretchBlt */
NULL
,
/* pStretchBlt */
NULL
,
/* pStretchDIBits */
NULL
,
/* pStretchDIBits */
NULL
,
/* pStrokeAndFillPath */
NULL
,
/* pStrokeAndFillPath */
...
...
dlls/gdi32/printdrv.c
View file @
22f920df
...
@@ -69,7 +69,7 @@ DWORD WINAPI GdiInitSpool(void)
...
@@ -69,7 +69,7 @@ DWORD WINAPI GdiInitSpool(void)
*/
*/
INT
WINAPI
StartDocW
(
HDC
hdc
,
const
DOCINFOW
*
doc
)
INT
WINAPI
StartDocW
(
HDC
hdc
,
const
DOCINFOW
*
doc
)
{
{
INT
ret
=
0
;
INT
ret
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
DC
*
dc
=
get_dc_ptr
(
hdc
);
TRACE
(
"DocName = %s Output = %s Datatype = %s
\n
"
,
TRACE
(
"DocName = %s Output = %s Datatype = %s
\n
"
,
...
@@ -78,13 +78,12 @@ INT WINAPI StartDocW(HDC hdc, const DOCINFOW* doc)
...
@@ -78,13 +78,12 @@ INT WINAPI StartDocW(HDC hdc, const DOCINFOW* doc)
if
(
!
dc
)
return
SP_ERROR
;
if
(
!
dc
)
return
SP_ERROR
;
if
(
dc
->
pAbortProc
&&
!
dc
->
pAbortProc
(
hdc
,
0
))
if
(
dc
->
pAbortProc
&&
!
dc
->
pAbortProc
(
hdc
,
0
))
ret
=
0
;
else
{
{
release_dc_ptr
(
d
c
);
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pStartDo
c
);
ret
urn
ret
;
ret
=
physdev
->
funcs
->
pStartDoc
(
physdev
,
doc
)
;
}
}
if
(
dc
->
funcs
->
pStartDoc
)
ret
=
dc
->
funcs
->
pStartDoc
(
dc
->
physDev
,
doc
);
release_dc_ptr
(
dc
);
release_dc_ptr
(
dc
);
return
ret
;
return
ret
;
}
}
...
@@ -140,12 +139,15 @@ INT WINAPI StartDocA(HDC hdc, const DOCINFOA* doc)
...
@@ -140,12 +139,15 @@ INT WINAPI StartDocA(HDC hdc, const DOCINFOA* doc)
*/
*/
INT
WINAPI
EndDoc
(
HDC
hdc
)
INT
WINAPI
EndDoc
(
HDC
hdc
)
{
{
INT
ret
=
0
;
INT
ret
=
SP_ERROR
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
DC
*
dc
=
get_dc_ptr
(
hdc
);
if
(
!
dc
)
return
SP_ERROR
;
if
(
dc
->
funcs
->
pEndDoc
)
ret
=
dc
->
funcs
->
pEndDoc
(
dc
->
physDev
);
if
(
dc
)
release_dc_ptr
(
dc
);
{
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pEndDoc
);
ret
=
physdev
->
funcs
->
pEndDoc
(
physdev
);
release_dc_ptr
(
dc
);
}
return
ret
;
return
ret
;
}
}
...
@@ -156,15 +158,15 @@ INT WINAPI EndDoc(HDC hdc)
...
@@ -156,15 +158,15 @@ INT WINAPI EndDoc(HDC hdc)
*/
*/
INT
WINAPI
StartPage
(
HDC
hdc
)
INT
WINAPI
StartPage
(
HDC
hdc
)
{
{
INT
ret
=
1
;
INT
ret
=
SP_ERROR
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
DC
*
dc
=
get_dc_ptr
(
hdc
);
if
(
!
dc
)
return
SP_ERROR
;
if
(
dc
->
funcs
->
pStartPage
)
if
(
dc
)
ret
=
dc
->
funcs
->
pStartPage
(
dc
->
physDev
);
{
else
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pStartPage
);
FIXME
(
"stub
\n
"
);
ret
=
physdev
->
funcs
->
pStartPage
(
physdev
);
release_dc_ptr
(
dc
);
release_dc_ptr
(
dc
);
}
return
ret
;
return
ret
;
}
}
...
@@ -175,12 +177,15 @@ INT WINAPI StartPage(HDC hdc)
...
@@ -175,12 +177,15 @@ INT WINAPI StartPage(HDC hdc)
*/
*/
INT
WINAPI
EndPage
(
HDC
hdc
)
INT
WINAPI
EndPage
(
HDC
hdc
)
{
{
INT
ret
=
0
;
INT
ret
=
SP_ERROR
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
DC
*
dc
=
get_dc_ptr
(
hdc
);
if
(
!
dc
)
return
SP_ERROR
;
if
(
dc
->
funcs
->
pEndPage
)
ret
=
dc
->
funcs
->
pEndPage
(
dc
->
physDev
);
if
(
dc
)
release_dc_ptr
(
dc
);
{
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pEndPage
);
ret
=
physdev
->
funcs
->
pEndPage
(
physdev
);
release_dc_ptr
(
dc
);
}
return
ret
;
return
ret
;
}
}
...
@@ -190,12 +195,15 @@ INT WINAPI EndPage(HDC hdc)
...
@@ -190,12 +195,15 @@ INT WINAPI EndPage(HDC hdc)
*/
*/
INT
WINAPI
AbortDoc
(
HDC
hdc
)
INT
WINAPI
AbortDoc
(
HDC
hdc
)
{
{
INT
ret
=
0
;
INT
ret
=
SP_ERROR
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
DC
*
dc
=
get_dc_ptr
(
hdc
);
if
(
!
dc
)
return
SP_ERROR
;
if
(
dc
->
funcs
->
pAbortDoc
)
ret
=
dc
->
funcs
->
pAbortDoc
(
dc
->
physDev
);
if
(
dc
)
release_dc_ptr
(
dc
);
{
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pAbortDoc
);
ret
=
physdev
->
funcs
->
pAbortDoc
(
physdev
);
release_dc_ptr
(
dc
);
}
return
ret
;
return
ret
;
}
}
...
...
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