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
978c42fe
Commit
978c42fe
authored
Jan 10, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Avoid using DIB functions to create the dithering image.
parent
49b73d53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
brush.c
dlls/winex11.drv/brush.c
+6
-2
No files found.
dlls/winex11.drv/brush.c
View file @
978c42fe
...
...
@@ -112,17 +112,21 @@ static Pixmap BRUSH_DitherColor( COLORREF color, int depth)
Pixmap
pixmap
;
GC
gc
=
get_bitmap_gc
(
depth
);
wine_tsx11_lock
();
if
(
!
ditherImage
)
{
ditherImage
=
X11DRV_DIB_CreateXImage
(
MATRIX_SIZE
,
MATRIX_SIZE
,
depth
);
ditherImage
=
XCreateImage
(
gdi_display
,
visual
,
depth
,
ZPixmap
,
0
,
NULL
,
MATRIX_SIZE
,
MATRIX_SIZE
,
32
,
0
);
if
(
!
ditherImage
)
{
wine_tsx11_unlock
();
ERR
(
"Could not create dither image
\n
"
);
return
0
;
}
ditherImage
->
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ditherImage
->
height
*
ditherImage
->
bytes_per_line
);
}
wine_tsx11_lock
();
if
(
color
!=
prevColor
)
{
int
r
=
GetRValue
(
color
)
*
DITHER_LEVELS
;
...
...
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