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
c5697ff4
Commit
c5697ff4
authored
May 17, 2012
by
Huw Davies
Committed by
Alexandre Julliard
May 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Fix top-down dib pattern brushes.
parent
25bb808c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ps.c
dlls/wineps.drv/ps.c
+4
-3
No files found.
dlls/wineps.drv/ps.c
View file @
c5697ff4
...
...
@@ -20,6 +20,7 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <locale.h>
...
...
@@ -889,7 +890,7 @@ BOOL PSDRV_WriteDIBPatternDict(PHYSDEV dev, const BITMAPINFO *bmi, BYTE *bits, U
" %d %d scale
\n
mypat image
\n
end
\n
}
\n
>>
\n
matrix makepattern setpattern
\n
"
;
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
char
*
buf
,
*
ptr
;
INT
w
,
h
,
x
,
y
,
w_mult
,
h_mult
;
INT
w
,
h
,
x
,
y
,
w_mult
,
h_mult
,
abs_height
=
abs
(
bmi
->
bmiHeader
.
biHeight
)
;
COLORREF
map
[
2
];
TRACE
(
"size %dx%dx%d
\n
"
,
...
...
@@ -901,7 +902,7 @@ BOOL PSDRV_WriteDIBPatternDict(PHYSDEV dev, const BITMAPINFO *bmi, BYTE *bits, U
}
w
=
bmi
->
bmiHeader
.
biWidth
&
~
0x7
;
h
=
bmi
->
bmiHeader
.
biH
eight
&
~
0x7
;
h
=
abs_h
eight
&
~
0x7
;
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
do_pattern
)
+
100
);
ptr
=
buf
;
...
...
@@ -913,7 +914,7 @@ BOOL PSDRV_WriteDIBPatternDict(PHYSDEV dev, const BITMAPINFO *bmi, BYTE *bits, U
}
}
PSDRV_WriteSpool
(
dev
,
mypat
,
sizeof
(
mypat
)
-
1
);
PSDRV_WriteImageDict
(
dev
,
1
,
8
,
8
,
buf
,
FALSE
);
PSDRV_WriteImageDict
(
dev
,
1
,
8
,
8
,
buf
,
bmi
->
bmiHeader
.
biHeight
<
0
);
PSDRV_WriteSpool
(
dev
,
"def
\n
"
,
4
);
PSDRV_WriteIndexColorSpaceBegin
(
dev
,
1
);
...
...
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