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
f30b0351
Commit
f30b0351
authored
May 08, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
May 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PS passthrough was sending 2 bytes too many.
Added GETSETPRINTORIENT stub. Implemented EPSPRINTING mode changer.
parent
6e73ee02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
2 deletions
+32
-2
escape.c
dlls/wineps/escape.c
+23
-2
escape.c
graphics/escape.c
+2
-0
wingdi.h
include/wingdi.h
+7
-0
No files found.
dlls/wineps/escape.c
View file @
f30b0351
...
...
@@ -79,6 +79,7 @@ INT PSDRV_Escape( DC *dc, INT nEscape, INT cbInput,
case
SETCHARSET
:
case
EXT_DEVICE_CAPS
:
case
SET_BOUNDS
:
case
EPSPRINTING
:
case
PASSTHROUGH
:
case
POSTSCRIPT_PASSTHROUGH
:
return
TRUE
;
...
...
@@ -314,17 +315,37 @@ INT PSDRV_Escape( DC *dc, INT nEscape, INT cbInput,
return
0
;
}
case
EPSPRINTING
:
{
UINT16
epsprint
=
*
(
UINT16
*
)
MapSL
(
lpInData
);
/* FIXME: In this mode we do not need to send page intros and page
* ends according to the doc. But I just ignore that detail
* for now.
*/
TRACE
(
"EPS Printing support %sable.
\n
"
,
epsprint
?
"en"
:
"dis"
);
return
1
;
}
case
PASSTHROUGH
:
case
POSTSCRIPT_PASSTHROUGH
:
{
/* Write directly to spool file, bypassing normal PS driver
* processing that is done along with writing PostScript code
* to the spool.
* (Usually we have a WORD before the data counting the size, but
* cbInput is just this +2.)
*/
return
WriteSpool16
(
physDev
->
job
.
hJob
,
((
char
*
)
lpInData
)
+
2
,
cbInput
);
return
WriteSpool16
(
physDev
->
job
.
hJob
,((
char
*
)
lpInData
)
+
2
,
cbInput
-
2
);
}
case
GETSETPRINTORIENT
:
{
/* If lpInData is present, it is a 20 byte structure, first 32
* bit LONG value is the orientation. if lpInData is NULL, it
* returns the current orientation.
*/
FIXME
(
"GETSETPRINTORIENT not implemented (lpInData %ld)!
\n
"
,
lpInData
);
return
1
;
}
default:
FIXME
(
"Unimplemented code 0x%x
\n
"
,
nEscape
);
return
0
;
...
...
graphics/escape.c
View file @
f30b0351
...
...
@@ -50,8 +50,10 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput,
switch
(
nEscape
)
{
/* Escape(hdc,QUERYESCSUPPORT,LPINT,NULL) */
/* Escape(hdc,CLIP_TO_PATH,LPINT,NULL) */
/* Escape(hdc,EPSPRINTING,LPINT,NULL) */
case
QUERYESCSUPPORT
:
case
CLIP_TO_PATH
:
case
EPSPRINTING
:
{
LPINT16
x
=
(
LPINT16
)
SEGPTR_NEW
(
INT16
);
*
x
=
*
(
INT
*
)
lpszInData
;
...
...
include/wingdi.h
View file @
f30b0351
...
...
@@ -327,6 +327,13 @@ DECL_WINELIB_TYPE_AW(LOGCOLORSPACE)
#define CLOSECHANNEL 4112
#define POSTSCRIPT_PASSTHROUGH 4115
#define ENCAPSULATED_POSTSCRIPT 4116
#define POSTSCRIPT_IDENTIFY 4117
#define POSTSCRIPT_INJECTION 4118
/* for POSTSCRIPT_IDENTIFY */
#define PSIDENT_GDICENTRIC 0
#define PSIDENT_PSCENTRIC 1
#define QDI_SETDIBITS 1
#define QDI_GETDIBITS 2
...
...
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