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
7a2f3bf7
Commit
7a2f3bf7
authored
Dec 04, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Remove some superfluous casts.
parent
23e6e7be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
libraries.c
programs/winecfg/libraries.c
+1
-1
theme.c
programs/winecfg/theme.c
+5
-8
No files found.
programs/winecfg/libraries.c
View file @
7a2f3bf7
...
@@ -495,7 +495,7 @@ static void on_add_click(HWND dialog)
...
@@ -495,7 +495,7 @@ static void on_add_click(HWND dialog)
load_library_settings
(
dialog
);
load_library_settings
(
dialog
);
SendDlgItemMessage
(
dialog
,
IDC_DLLS_LIST
,
LB_SELECTSTRING
,
(
WPARAM
)
0
,
(
LPARAM
)
buffer
);
SendDlgItemMessage
(
dialog
,
IDC_DLLS_LIST
,
LB_SELECTSTRING
,
0
,
(
LPARAM
)
buffer
);
set_controls_from_selection
(
dialog
);
set_controls_from_selection
(
dialog
);
}
}
...
...
programs/winecfg/theme.c
View file @
7a2f3bf7
...
@@ -302,7 +302,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
...
@@ -302,7 +302,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
for
(
i
=
0
;
i
<
themeFilesCount
;
i
++
)
for
(
i
=
0
;
i
<
themeFilesCount
;
i
++
)
{
{
ThemeFile
*
item
=
(
ThemeFile
*
)
DSA_GetItemPtr
(
themeFiles
,
i
);
ThemeFile
*
item
=
DSA_GetItemPtr
(
themeFiles
,
i
);
SendMessageW
(
comboTheme
,
CB_ADDSTRING
,
0
,
SendMessageW
(
comboTheme
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
item
->
fancyName
);
(
LPARAM
)
item
->
fancyName
);
}
}
...
@@ -316,7 +316,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
...
@@ -316,7 +316,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
BOOL
found
=
FALSE
;
BOOL
found
=
FALSE
;
for
(
i
=
0
;
i
<
themeFilesCount
;
i
++
)
for
(
i
=
0
;
i
<
themeFilesCount
;
i
++
)
{
{
theme
=
(
ThemeFile
*
)
DSA_GetItemPtr
(
themeFiles
,
i
);
theme
=
DSA_GetItemPtr
(
themeFiles
,
i
);
if
(
lstrcmpiW
(
theme
->
themeFileName
,
currentTheme
)
==
0
)
if
(
lstrcmpiW
(
theme
->
themeFileName
,
currentTheme
)
==
0
)
{
{
found
=
TRUE
;
found
=
TRUE
;
...
@@ -332,8 +332,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
...
@@ -332,8 +332,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
myEnumThemeProc
(
NULL
,
currentTheme
,
currentTheme
,
myEnumThemeProc
(
NULL
,
currentTheme
,
currentTheme
,
currentTheme
,
NULL
,
NULL
);
currentTheme
,
NULL
,
NULL
);
themeIndex
=
themeFilesCount
;
themeIndex
=
themeFilesCount
;
theme
=
(
ThemeFile
*
)
DSA_GetItemPtr
(
themeFiles
,
theme
=
DSA_GetItemPtr
(
themeFiles
,
themeFilesCount
-
1
);
themeFilesCount
-
1
);
}
}
fill_color_size_combos
(
theme
,
comboColor
,
comboSize
);
fill_color_size_combos
(
theme
,
comboColor
,
comboSize
);
select_color_and_size
(
theme
,
currentColor
,
comboColor
,
select_color_and_size
(
theme
,
currentColor
,
comboColor
,
...
@@ -364,8 +363,7 @@ static BOOL update_color_and_size (int themeIndex, HWND comboColor,
...
@@ -364,8 +363,7 @@ static BOOL update_color_and_size (int themeIndex, HWND comboColor,
WCHAR
currentTheme
[
MAX_PATH
];
WCHAR
currentTheme
[
MAX_PATH
];
WCHAR
currentColor
[
MAX_PATH
];
WCHAR
currentColor
[
MAX_PATH
];
WCHAR
currentSize
[
MAX_PATH
];
WCHAR
currentSize
[
MAX_PATH
];
ThemeFile
*
theme
=
ThemeFile
*
theme
=
DSA_GetItemPtr
(
themeFiles
,
themeIndex
-
1
);
(
ThemeFile
*
)
DSA_GetItemPtr
(
themeFiles
,
themeIndex
-
1
);
fill_color_size_combos
(
theme
,
comboColor
,
comboSize
);
fill_color_size_combos
(
theme
,
comboColor
,
comboSize
);
...
@@ -399,8 +397,7 @@ static void do_apply_theme (int themeIndex, int colorIndex, int sizeIndex)
...
@@ -399,8 +397,7 @@ static void do_apply_theme (int themeIndex, int colorIndex, int sizeIndex)
}
}
else
else
{
{
ThemeFile
*
theme
=
ThemeFile
*
theme
=
DSA_GetItemPtr
(
themeFiles
,
themeIndex
-
1
);
(
ThemeFile
*
)
DSA_GetItemPtr
(
themeFiles
,
themeIndex
-
1
);
const
WCHAR
*
themeFileName
=
theme
->
themeFileName
;
const
WCHAR
*
themeFileName
=
theme
->
themeFileName
;
const
WCHAR
*
colorName
=
NULL
;
const
WCHAR
*
colorName
=
NULL
;
const
WCHAR
*
sizeName
=
NULL
;
const
WCHAR
*
sizeName
=
NULL
;
...
...
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