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
53c8abbf
Commit
53c8abbf
authored
Dec 03, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Turn a variable and a constant into static constants.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a1a2e82
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
metric.c
dlls/uxtheme/metric.c
+3
-3
system.c
dlls/uxtheme/system.c
+1
-1
No files found.
dlls/uxtheme/metric.c
View file @
53c8abbf
...
...
@@ -165,9 +165,7 @@ HRESULT WINAPI GetThemeSysInt(HTHEME hTheme, int iIntID, int *piValue)
*/
int
WINAPI
GetThemeSysSize
(
HTHEME
hTheme
,
int
iSizeID
)
{
PTHEME_PROPERTY
tp
;
int
i
,
id
=
-
1
;
int
metricMap
[]
=
{
static
const
int
metricMap
[]
=
{
SM_CXVSCROLL
,
TMT_SCROLLBARWIDTH
,
SM_CYHSCROLL
,
TMT_SCROLLBARHEIGHT
,
SM_CXSIZE
,
TMT_CAPTIONBARWIDTH
,
...
...
@@ -179,6 +177,8 @@ int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID)
SM_CXMENUSIZE
,
TMT_MENUBARWIDTH
,
SM_CYMENUSIZE
,
TMT_MENUBARHEIGHT
};
PTHEME_PROPERTY
tp
;
int
i
,
id
=
-
1
;
if
(
hTheme
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
metricMap
);
i
+=
2
)
{
...
...
dlls/uxtheme/system.c
View file @
53c8abbf
...
...
@@ -813,7 +813,7 @@ HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR pszThemeName,
LPWSTR
pszValueBuff
,
int
cchMaxValChars
)
{
const
WORD
wDocToRes
[]
=
{
static
const
WORD
wDocToRes
[]
=
{
TMT_DISPLAYNAME
,
5000
,
TMT_TOOLTIP
,
5001
,
TMT_COMPANY
,
5002
,
...
...
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