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
7abeb204
Commit
7abeb204
authored
Mar 19, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Assign to structs instead of using memcpy.
parent
6e1829fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
draw.c
dlls/uxtheme/draw.c
+4
-4
msstyles.c
dlls/uxtheme/msstyles.c
+6
-6
No files found.
dlls/uxtheme/draw.c
View file @
7abeb204
...
...
@@ -1609,12 +1609,12 @@ HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId
}
else
{
/* otherwise, try to determine content rect from the background type and props */
int
bgtype
=
BT_BORDERFILL
;
memcpy
(
pContentRect
,
pBoundingRect
,
sizeof
(
RECT
))
;
*
pContentRect
=
*
pBoundingRect
;
GetThemeEnumValue
(
hTheme
,
iPartId
,
iStateId
,
TMT_BGTYPE
,
&
bgtype
);
if
(
bgtype
==
BT_BORDERFILL
)
{
int
bordersize
=
1
;
GetThemeInt
(
hTheme
,
iPartId
,
iStateId
,
TMT_BORDERSIZE
,
&
bordersize
);
InflateRect
(
pContentRect
,
-
bordersize
,
-
bordersize
);
}
else
if
((
bgtype
==
BT_IMAGEFILE
)
...
...
@@ -1657,12 +1657,12 @@ HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId,
}
else
{
/* otherwise, try to determine content rect from the background type and props */
int
bgtype
=
BT_BORDERFILL
;
memcpy
(
pExtentRect
,
pContentRect
,
sizeof
(
RECT
))
;
*
pExtentRect
=
*
pContentRect
;
GetThemeEnumValue
(
hTheme
,
iPartId
,
iStateId
,
TMT_BGTYPE
,
&
bgtype
);
if
(
bgtype
==
BT_BORDERFILL
)
{
int
bordersize
=
1
;
GetThemeInt
(
hTheme
,
iPartId
,
iStateId
,
TMT_BORDERSIZE
,
&
bordersize
);
InflateRect
(
pExtentRect
,
bordersize
,
bordersize
);
}
else
if
((
bgtype
==
BT_IMAGEFILE
)
...
...
dlls/uxtheme/msstyles.c
View file @
7abeb204
...
...
@@ -751,27 +751,27 @@ static BOOL parse_handle_nonclient_font (struct PARSENONCLIENTSTATE* state,
switch
(
iPropertyId
)
{
case
TMT_CAPTIONFONT
:
memcpy
(
&
state
->
metrics
.
lfCaptionFont
,
&
font
,
sizeof
(
LOGFONTW
))
;
state
->
metrics
.
lfCaptionFont
=
font
;
state
->
metricsDirty
=
TRUE
;
break
;
case
TMT_SMALLCAPTIONFONT
:
memcpy
(
&
state
->
metrics
.
lfSmCaptionFont
,
&
font
,
sizeof
(
LOGFONTW
))
;
state
->
metrics
.
lfSmCaptionFont
=
font
;
state
->
metricsDirty
=
TRUE
;
break
;
case
TMT_MENUFONT
:
memcpy
(
&
state
->
metrics
.
lfMenuFont
,
&
font
,
sizeof
(
LOGFONTW
))
;
state
->
metrics
.
lfMenuFont
=
font
;
state
->
metricsDirty
=
TRUE
;
break
;
case
TMT_STATUSFONT
:
memcpy
(
&
state
->
metrics
.
lfStatusFont
,
&
font
,
sizeof
(
LOGFONTW
))
;
state
->
metrics
.
lfStatusFont
=
font
;
state
->
metricsDirty
=
TRUE
;
break
;
case
TMT_MSGBOXFONT
:
memcpy
(
&
state
->
metrics
.
lfMessageFont
,
&
font
,
sizeof
(
LOGFONTW
))
;
state
->
metrics
.
lfMessageFont
=
font
;
state
->
metricsDirty
=
TRUE
;
break
;
case
TMT_ICONTITLEFONT
:
memcpy
(
&
state
->
iconTitleFont
,
&
font
,
sizeof
(
LOGFONTW
))
;
state
->
iconTitleFont
=
font
;
state
->
metricsDirty
=
TRUE
;
break
;
}
...
...
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