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
208aeedc
Commit
208aeedc
authored
Nov 07, 2010
by
Vladimir Panteleev
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Correctly handle non-RGB COLORREFs in BRUSH_SelectSolidBrush.
parent
d7d5fb0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
brush.c
dlls/winex11.drv/brush.c
+4
-3
No files found.
dlls/winex11.drv/brush.c
View file @
208aeedc
...
@@ -183,17 +183,18 @@ static Pixmap BRUSH_DitherMono( COLORREF color )
...
@@ -183,17 +183,18 @@ static Pixmap BRUSH_DitherMono( COLORREF color )
*/
*/
static
void
BRUSH_SelectSolidBrush
(
X11DRV_PDEVICE
*
physDev
,
COLORREF
color
)
static
void
BRUSH_SelectSolidBrush
(
X11DRV_PDEVICE
*
physDev
,
COLORREF
color
)
{
{
COLORREF
colorRGB
=
X11DRV_PALETTE_GetColor
(
physDev
,
color
);
if
((
physDev
->
depth
>
1
)
&&
(
screen_depth
<=
8
)
&&
!
X11DRV_IsSolidColor
(
color
))
if
((
physDev
->
depth
>
1
)
&&
(
screen_depth
<=
8
)
&&
!
X11DRV_IsSolidColor
(
color
))
{
{
/* Dithered brush */
/* Dithered brush */
physDev
->
brush
.
pixmap
=
BRUSH_DitherColor
(
color
,
physDev
->
depth
);
physDev
->
brush
.
pixmap
=
BRUSH_DitherColor
(
color
RGB
,
physDev
->
depth
);
physDev
->
brush
.
fillStyle
=
FillTiled
;
physDev
->
brush
.
fillStyle
=
FillTiled
;
physDev
->
brush
.
pixel
=
0
;
physDev
->
brush
.
pixel
=
0
;
}
}
else
if
(
physDev
->
depth
==
1
&&
color
!=
WHITE
&&
color
!=
BLACK
)
else
if
(
physDev
->
depth
==
1
&&
color
RGB
!=
WHITE
&&
colorRGB
!=
BLACK
)
{
{
physDev
->
brush
.
pixel
=
0
;
physDev
->
brush
.
pixel
=
0
;
physDev
->
brush
.
pixmap
=
BRUSH_DitherMono
(
color
);
physDev
->
brush
.
pixmap
=
BRUSH_DitherMono
(
color
RGB
);
physDev
->
brush
.
fillStyle
=
FillTiled
;
physDev
->
brush
.
fillStyle
=
FillTiled
;
}
}
else
else
...
...
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