~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Have each game declare a name which is used for window titles etc.
[sgt/puzzles]
/
windows.c
diff --git
a/windows.c
b/windows.c
index
29b50bc
..
4db17f4
100644
(file)
--- a/
windows.c
+++ b/
windows.c
@@
-234,7
+234,7
@@
static frontend *new_window(HINSTANCE inst)
(WS_THICKFRAME | WS_MAXIMIZEBOX | WS_OVERLAPPED),
TRUE, 0);
(WS_THICKFRAME | WS_MAXIMIZEBOX | WS_OVERLAPPED),
TRUE, 0);
- fe->hwnd = CreateWindowEx(0,
"puzzle", "puzzle"
,
+ fe->hwnd = CreateWindowEx(0,
game_name, game_name
,
WS_OVERLAPPEDWINDOW &~
(WS_THICKFRAME | WS_MAXIMIZEBOX),
CW_USEDEFAULT, CW_USEDEFAULT,
WS_OVERLAPPEDWINDOW &~
(WS_THICKFRAME | WS_MAXIMIZEBOX),
CW_USEDEFAULT, CW_USEDEFAULT,
@@
-489,7
+489,7
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = NULL;
wndclass.lpszMenuName = NULL;
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = NULL;
wndclass.lpszMenuName = NULL;
- wndclass.lpszClassName =
"puzzle"
;
+ wndclass.lpszClassName =
game_name
;
RegisterClass(&wndclass);
}
RegisterClass(&wndclass);
}