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
f1172cd4
Commit
f1172cd4
authored
Mar 14, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Values for DC_MINEXTENT and DC_MAXEXTENT are returned, not placed in the data pointer.
parent
a44d1e5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
driver.c
dlls/wineps.drv/driver.c
+8
-10
No files found.
dlls/wineps.drv/driver.c
View file @
f1172cd4
...
@@ -603,28 +603,26 @@ DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszP
...
@@ -603,28 +603,26 @@ DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszP
if
(
ps
->
PaperDimension
->
y
>
ptMax
.
y
)
if
(
ps
->
PaperDimension
->
y
>
ptMax
.
y
)
ptMax
.
y
=
ps
->
PaperDimension
->
y
;
ptMax
.
y
=
ps
->
PaperDimension
->
y
;
}
}
*
((
POINT
*
)
lpszOutput
)
=
ptMax
;
return
MAKELONG
(
ptMax
.
x
*
254
.
0
/
72
.
0
,
ptMax
.
y
*
254
.
0
/
72
.
0
);
return
1
;
}
}
case
DC_MINEXTENT
:
case
DC_MINEXTENT
:
{
{
PAGESIZE
*
ps
;
PAGESIZE
*
ps
;
POINT
ptM
ax
;
POINT
ptM
in
;
ptM
ax
.
x
=
ptMax
.
y
=
0
;
ptM
in
.
x
=
ptMin
.
y
=
-
1
;
if
(
lpszOutput
==
NULL
)
if
(
lpszOutput
==
NULL
)
return
-
1
;
return
-
1
;
LIST_FOR_EACH_ENTRY
(
ps
,
&
pi
->
ppd
->
PageSizes
,
PAGESIZE
,
entry
)
LIST_FOR_EACH_ENTRY
(
ps
,
&
pi
->
ppd
->
PageSizes
,
PAGESIZE
,
entry
)
{
{
if
(
p
s
->
PaperDimension
->
x
>
ptMax
.
x
)
if
(
p
tMin
.
x
==
-
1
||
ps
->
PaperDimension
->
x
<
ptMin
.
x
)
ptM
ax
.
x
=
ps
->
PaperDimension
->
x
;
ptM
in
.
x
=
ps
->
PaperDimension
->
x
;
if
(
p
s
->
PaperDimension
->
y
>
ptMax
.
y
)
if
(
p
tMin
.
y
==
-
1
||
ps
->
PaperDimension
->
y
<
ptMin
.
y
)
ptM
ax
.
y
=
ps
->
PaperDimension
->
y
;
ptM
in
.
y
=
ps
->
PaperDimension
->
y
;
}
}
*
((
POINT
*
)
lpszOutput
)
=
ptMax
;
return
MAKELONG
(
ptMin
.
x
*
254
.
0
/
72
.
0
,
ptMin
.
y
*
254
.
0
/
72
.
0
);
return
1
;
}
}
case
DC_SIZE
:
case
DC_SIZE
:
...
...
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