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
020facea
Commit
020facea
authored
Jan 19, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemine: Convert to Unicode.
parent
be917909
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
12 deletions
+23
-12
Makefile.in
programs/winemine/Makefile.in
+2
-1
dialog.c
programs/winemine/dialog.c
+4
-5
main.c
programs/winemine/main.c
+0
-0
main.h
programs/winemine/main.h
+1
-1
resource.h
programs/winemine/resource.h
+11
-0
winemine.rc
programs/winemine/winemine.rc
+5
-5
No files found.
programs/winemine/Makefile.in
View file @
020facea
MODULE
=
winemine.exe
APPMODE
=
-mwindows
APPMODE
=
-mwindows
-municode
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
IMPORTS
=
user32 gdi32 advapi32
DELAYIMPORTS
=
shell32
...
...
programs/winemine/dialog.c
View file @
020facea
...
...
@@ -63,16 +63,15 @@ INT_PTR CALLBACK CongratsDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lP
switch
(
uMsg
)
{
case
WM_INITDIALOG
:
p_board
=
(
BOARD
*
)
lParam
;
SetDlgItemText
(
hDlg
,
IDC_EDITNAME
,
p_board
->
best_name
[
p_board
->
difficulty
]
);
SetDlgItemTextW
(
hDlg
,
IDC_EDITNAME
,
p_board
->
best_name
[
p_board
->
difficulty
]
);
return
TRUE
;
case
WM_COMMAND
:
switch
(
LOWORD
(
wParam
)
)
{
case
IDOK
:
GetDlgItemText
(
hDlg
,
IDC_EDITNAME
,
GetDlgItemText
W
(
hDlg
,
IDC_EDITNAME
,
p_board
->
best_name
[
p_board
->
difficulty
],
sizeof
(
p_board
->
best_name
[
p_board
->
difficulty
]
)
);
sizeof
(
p_board
->
best_name
[
p_board
->
difficulty
]
)
/
sizeof
(
WCHAR
)
);
EndDialog
(
hDlg
,
0
);
return
TRUE
;
...
...
@@ -96,7 +95,7 @@ INT_PTR CALLBACK TimesDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
/* set best names */
for
(
i
=
0
;
i
<
3
;
i
++
)
SetDlgItemText
(
hDlg
,
(
IDC_NAME1
)
+
i
,
p_board
->
best_name
[
i
]
);
SetDlgItemText
W
(
hDlg
,
(
IDC_NAME1
)
+
i
,
p_board
->
best_name
[
i
]
);
/* set best times */
for
(
i
=
0
;
i
<
3
;
i
++
)
...
...
programs/winemine/main.c
View file @
020facea
This diff is collapsed.
Click to expand it.
programs/winemine/main.h
View file @
020facea
...
...
@@ -86,7 +86,7 @@ typedef struct tagBOARD
unsigned
rows
;
unsigned
cols
;
unsigned
mines
;
char
best_name
[
3
][
MAX_PLAYER_NAME_SIZE
+
1
];
WCHAR
best_name
[
3
][
MAX_PLAYER_NAME_SIZE
+
1
];
DWORD
best_time
[
3
];
DIFFICULTY
difficulty
;
...
...
programs/winemine/resource.h
View file @
020facea
...
...
@@ -52,3 +52,14 @@
#define IDS_ABOUT 1103
#define IDA_WINEMINE 1201
#define IDM_WINEMINE 1
#define IDI_WINEMINE 1
#define IDI_FACES 2
#define IDI_LEDS 3
#define IDI_MINES 4
#define DLG_TIMES 1
#define DLG_CONGRATS 2
#define DLG_CUSTOM 3
programs/winemine/winemine.rc
View file @
020facea
...
...
@@ -29,7 +29,7 @@ STRINGTABLE {
IDS_ABOUT, "Copyright 2000 Joshua Thielen"
}
MENU
_WINEMINE MENU
IDM
_WINEMINE MENU
{
POPUP "&Game" {
MENUITEM "&New\tF2", IDM_NEW
...
...
@@ -102,13 +102,13 @@ IDA_WINEMINE ACCELERATORS
LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL
/* @makedep: winemine.ico */
WINEMINE ICON winemine.ico
IDI_
WINEMINE ICON winemine.ico
/* @makedep: faces.bmp */
FACES BITMAP faces.bmp
IDI_
FACES BITMAP faces.bmp
/* @makedep: leds.bmp */
LEDS BITMAP leds.bmp
IDI_
LEDS BITMAP leds.bmp
/* @makedep: mines.bmp */
MINES BITMAP mines.bmp
IDI_
MINES BITMAP mines.bmp
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