aboutsummaryrefslogtreecommitdiff
path: root/windows.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-28 17:46:04 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-28 17:46:04 +0000
commit64e6afdeedcf3f22282524ebd36e3393736fed65 (patch)
tree49fe5fe04ca98a0e2e93a7d1f94b800bbdf7b56e /windows.c
parente96f53452ac06e6b533a30d4caad30dd0dbe46fb (diff)
downloadpuzzles-64e6afdeedcf3f22282524ebd36e3393736fed65.zip
puzzles-64e6afdeedcf3f22282524ebd36e3393736fed65.tar.gz
puzzles-64e6afdeedcf3f22282524ebd36e3393736fed65.tar.bz2
puzzles-64e6afdeedcf3f22282524ebd36e3393736fed65.tar.xz
Have each game declare a name which is used for window titles etc.
[originally from svn r4167]
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/windows.c b/windows.c
index 29b50bc..4db17f4 100644
--- a/windows.c
+++ b/windows.c
@@ -234,7 +234,7 @@ static frontend *new_window(HINSTANCE inst)
(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,
@@ -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.lpszClassName = "puzzle";
+ wndclass.lpszClassName = game_name;
RegisterClass(&wndclass);
}