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
a18042e7
Commit
a18042e7
authored
Aug 30, 2005
by
Frank Richter
Committed by
Alexandre Julliard
Aug 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More elaborate IsThemeBackgroundPartiallyTransparent() implementation;
also returns TRUE for theme parts with 32bpp images.
parent
5c87552f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
draw.c
dlls/uxtheme/draw.c
+23
-3
No files found.
dlls/uxtheme/draw.c
View file @
a18042e7
...
...
@@ -1849,8 +1849,28 @@ HRESULT WINAPI GetThemeTextMetrics(HTHEME hTheme, HDC hdc, int iPartId,
BOOL
WINAPI
IsThemeBackgroundPartiallyTransparent
(
HTHEME
hTheme
,
int
iPartId
,
int
iStateId
)
{
BOOL
transparent
=
FALSE
;
int
bgtype
=
BT_BORDERFILL
;
RECT
rect
=
{
0
,
0
,
0
,
0
};
HBITMAP
bmpSrc
;
RECT
rcSrc
;
BOOL
hasAlpha
;
INT
transparent
;
COLORREF
transparentcolor
;
TRACE
(
"(%d,%d)
\n
"
,
iPartId
,
iStateId
);
GetThemeBool
(
hTheme
,
iPartId
,
iStateId
,
TMT_TRANSPARENT
,
&
transparent
);
return
transparent
;
if
(
!
hTheme
)
return
FALSE
;
GetThemeEnumValue
(
hTheme
,
iPartId
,
iStateId
,
TMT_BGTYPE
,
&
bgtype
);
if
(
bgtype
!=
BT_IMAGEFILE
)
return
FALSE
;
if
(
FAILED
(
UXTHEME_LoadImage
(
hTheme
,
0
,
iPartId
,
iStateId
,
&
rect
,
FALSE
,
&
bmpSrc
,
&
rcSrc
,
&
hasAlpha
)))
return
FALSE
;
get_transparency
(
hTheme
,
iPartId
,
iStateId
,
hasAlpha
,
&
transparent
,
&
transparentcolor
,
FALSE
);
return
(
transparent
!=
ALPHABLEND_NONE
);
}
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