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
c6b4b4b9
Commit
c6b4b4b9
authored
Apr 08, 2015
by
Mark Harmstone
Committed by
Alexandre Julliard
Apr 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Fix colour errors in UXTHEME_StretchBlt.
parent
b0a9fb6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
draw.c
dlls/uxtheme/draw.c
+16
-5
No files found.
dlls/uxtheme/draw.c
View file @
c6b4b4b9
...
...
@@ -293,22 +293,33 @@ static inline BOOL UXTHEME_StretchBlt(HDC hdcDst, int nXOriginDst, int nYOriginD
255
,
/* SourceConstantAlpha */
AC_SRC_ALPHA
/* AlphaFormat */
};
BOOL
ret
=
TRUE
;
int
old_stretch_mode
;
POINT
old_brush_org
;
old_stretch_mode
=
SetStretchBltMode
(
hdcDst
,
HALFTONE
);
SetBrushOrgEx
(
hdcDst
,
nXOriginDst
,
nYOriginDst
,
&
old_brush_org
);
if
(
transparent
==
ALPHABLEND_BINARY
)
{
/* Ensure we don't pass any negative values to TransparentBlt */
ret
urn
TransparentBlt
(
hdcDst
,
nXOriginDst
,
nYOriginDst
,
abs
(
nWidthDst
),
abs
(
nHeightDst
),
ret
=
TransparentBlt
(
hdcDst
,
nXOriginDst
,
nYOriginDst
,
abs
(
nWidthDst
),
abs
(
nHeightDst
),
hdcSrc
,
nXOriginSrc
,
nYOriginSrc
,
abs
(
nWidthSrc
),
abs
(
nHeightSrc
),
transcolor
);
}
if
((
transparent
==
ALPHABLEND_NONE
)
||
}
else
if
((
transparent
==
ALPHABLEND_NONE
)
||
!
AlphaBlend
(
hdcDst
,
nXOriginDst
,
nYOriginDst
,
nWidthDst
,
nHeightDst
,
hdcSrc
,
nXOriginSrc
,
nYOriginSrc
,
nWidthSrc
,
nHeightSrc
,
blendFunc
))
{
ret
urn
StretchBlt
(
hdcDst
,
nXOriginDst
,
nYOriginDst
,
nWidthDst
,
nHeightDst
,
ret
=
StretchBlt
(
hdcDst
,
nXOriginDst
,
nYOriginDst
,
nWidthDst
,
nHeightDst
,
hdcSrc
,
nXOriginSrc
,
nYOriginSrc
,
nWidthSrc
,
nHeightSrc
,
SRCCOPY
);
}
return
TRUE
;
SetBrushOrgEx
(
hdcDst
,
old_brush_org
.
x
,
old_brush_org
.
y
,
NULL
);
SetStretchBltMode
(
hdcDst
,
old_stretch_mode
);
return
ret
;
}
/***********************************************************************
...
...
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