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
37d1753a
Commit
37d1753a
authored
Dec 16, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Constify some character strings.
parent
c4ba190b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
main.c
dlls/joy.cpl/main.c
+2
-3
No files found.
dlls/joy.cpl/main.c
View file @
37d1753a
...
...
@@ -39,6 +39,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(joycpl);
DECLSPEC_HIDDEN
HMODULE
hcpl
;
static
const
WCHAR
button_class
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'\0'
};
/*********************************************************************
* DllMain
*/
...
...
@@ -476,7 +478,6 @@ static void draw_joystick_buttons(HWND hwnd, struct JoystickData* data)
int
row
=
0
,
col
=
0
;
WCHAR
button_label
[
3
];
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
static
WCHAR
button_class
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'\0'
};
for
(
i
=
0
;
i
<
TEST_MAX_BUTTONS
;
i
++
)
{
...
...
@@ -508,7 +509,6 @@ static void draw_joystick_axes(HWND hwnd, struct JoystickData* data)
{
int
i
;
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
static
const
WCHAR
button_class
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'\0'
};
static
const
WCHAR
axes_names
[
TEST_MAX_AXES
][
7
]
=
{
{
'X'
,
','
,
'Y'
,
'\0'
},
{
'R'
,
'x'
,
','
,
'R'
,
'y'
,
'\0'
},
{
'Z'
,
','
,
'R'
,
'z'
,
'\0'
},
{
'P'
,
'O'
,
'V'
,
'\0'
}
};
static
const
DWORD
axes_idc
[
TEST_MAX_AXES
]
=
{
IDC_TESTGROUPXY
,
IDC_TESTGROUPRXRY
,
...
...
@@ -613,7 +613,6 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
static
void
draw_ff_axis
(
HWND
hwnd
,
struct
JoystickData
*
data
)
{
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
static
WCHAR
button_class
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'\0'
};
RECT
r
;
r
.
left
=
FF_AXIS_X
;
...
...
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