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
f739bfc3
Commit
f739bfc3
authored
May 08, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Remove no longer used PSDRV_StartDoc and PSDRV_EndDoc functions.
parent
be33dfbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
92 deletions
+0
-92
escape.c
dlls/wineps.drv/escape.c
+0
-90
psdrv.h
dlls/wineps.drv/psdrv.h
+0
-2
No files found.
dlls/wineps.drv/escape.c
View file @
f739bfc3
...
...
@@ -194,93 +194,3 @@ INT CDECL PSDRV_EndPage( PHYSDEV dev )
physDev
->
job
.
OutOfPage
=
TRUE
;
return
1
;
}
/************************************************************************
* PSDRV_StartDoc
*/
INT
CDECL
PSDRV_StartDoc
(
PHYSDEV
dev
,
const
DOCINFOW
*
doc
)
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
DOC_INFO_1W
di
;
PRINTER_DEFAULTSW
prn_def
;
TRACE
(
"(%p, %p) => %s, %s, %s
\n
"
,
physDev
,
doc
,
debugstr_w
(
doc
->
lpszDocName
),
debugstr_w
(
doc
->
lpszOutput
),
debugstr_w
(
doc
->
lpszDatatype
));
if
(
physDev
->
job
.
id
)
{
FIXME
(
"hJob != 0. Now what?
\n
"
);
return
0
;
}
prn_def
.
pDatatype
=
NULL
;
prn_def
.
pDevMode
=
&
physDev
->
pi
->
Devmode
->
dmPublic
;
prn_def
.
DesiredAccess
=
PRINTER_ACCESS_USE
;
if
(
!
OpenPrinterW
(
physDev
->
pi
->
friendly_name
,
&
physDev
->
job
.
hprinter
,
&
prn_def
))
{
WARN
(
"OpenPrinter(%s, ...) failed: %ld
\n
"
,
debugstr_w
(
physDev
->
pi
->
friendly_name
),
GetLastError
());
return
0
;
}
di
.
pDocName
=
(
LPWSTR
)
doc
->
lpszDocName
;
di
.
pOutputFile
=
(
LPWSTR
)
doc
->
lpszOutput
;
di
.
pDatatype
=
NULL
;
/* redirection located in HKCU\Software\Wine\Printing\Spooler
is done during winspool.drv,ScheduleJob */
physDev
->
job
.
id
=
StartDocPrinterW
(
physDev
->
job
.
hprinter
,
1
,
(
LPBYTE
)
&
di
);
if
(
!
physDev
->
job
.
id
)
{
WARN
(
"StartDocPrinter() failed: %ld
\n
"
,
GetLastError
());
ClosePrinter
(
physDev
->
job
.
hprinter
);
return
0
;
}
if
(
!
PSDRV_WriteHeader
(
dev
,
doc
->
lpszDocName
))
{
WARN
(
"Failed to write header
\n
"
);
ClosePrinter
(
physDev
->
job
.
hprinter
);
return
0
;
}
physDev
->
job
.
OutOfPage
=
TRUE
;
physDev
->
job
.
PageNo
=
0
;
physDev
->
job
.
quiet
=
FALSE
;
physDev
->
job
.
passthrough_state
=
passthrough_none
;
physDev
->
job
.
doc_name
=
strdupW
(
doc
->
lpszDocName
);
return
physDev
->
job
.
id
;
}
/************************************************************************
* PSDRV_EndDoc
*/
INT
CDECL
PSDRV_EndDoc
(
PHYSDEV
dev
)
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
INT
ret
=
1
;
TRACE
(
"%p
\n
"
,
dev
->
hdc
);
if
(
!
physDev
->
job
.
id
)
{
FIXME
(
"hJob == 0. Now what?
\n
"
);
return
0
;
}
if
(
!
physDev
->
job
.
OutOfPage
)
{
WARN
(
"Somebody forgot an EndPage
\n
"
);
PSDRV_EndPage
(
dev
);
}
if
(
physDev
->
job
.
PageNo
)
PSDRV_WriteFooter
(
dev
);
ret
=
EndDocPrinter
(
physDev
->
job
.
hprinter
);
ClosePrinter
(
physDev
->
job
.
hprinter
);
physDev
->
job
.
hprinter
=
NULL
;
physDev
->
job
.
id
=
0
;
HeapFree
(
GetProcessHeap
(),
0
,
physDev
->
job
.
doc_name
);
physDev
->
job
.
doc_name
=
NULL
;
return
ret
;
}
dlls/wineps.drv/psdrv.h
View file @
f739bfc3
...
...
@@ -422,7 +422,6 @@ extern BOOL CDECL PSDRV_Arc( PHYSDEV dev, INT left, INT top, INT right, INT bott
extern
BOOL
CDECL
PSDRV_Chord
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
DECLSPEC_HIDDEN
;
extern
BOOL
CDECL
PSDRV_Ellipse
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
DECLSPEC_HIDDEN
;
extern
INT
CDECL
PSDRV_EndDoc
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
INT
CDECL
PSDRV_EndPage
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
INT
CDECL
PSDRV_ExtEscape
(
PHYSDEV
dev
,
INT
nEscape
,
INT
cbInput
,
LPCVOID
in_data
,
INT
cbOutput
,
LPVOID
out_data
)
DECLSPEC_HIDDEN
;
...
...
@@ -452,7 +451,6 @@ extern COLORREF CDECL PSDRV_SetDCBrushColor( PHYSDEV dev, COLORREF color ) DECLS
extern
COLORREF
CDECL
PSDRV_SetDCPenColor
(
PHYSDEV
dev
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
extern
COLORREF
CDECL
PSDRV_SetPixel
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
extern
COLORREF
CDECL
PSDRV_SetTextColor
(
PHYSDEV
dev
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
extern
INT
CDECL
PSDRV_StartDoc
(
PHYSDEV
dev
,
const
DOCINFOW
*
doc
)
DECLSPEC_HIDDEN
;
extern
BOOL
CDECL
PSDRV_StrokeAndFillPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
CDECL
PSDRV_StrokePath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
...
...
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