diff options
| -rw-r--r-- | cube.c | 2 | ||||
| -rw-r--r-- | gtk.c | 1 | ||||
| -rw-r--r-- | net.c | 2 | ||||
| -rw-r--r-- | puzzles.h | 1 | ||||
| -rw-r--r-- | windows.c | 4 |
5 files changed, 8 insertions, 2 deletions
@@ -10,6 +10,8 @@ #include "puzzles.h" +const char *const game_name = "Cube"; + #define MAXVERTICES 20 #define MAXFACES 20 #define MAXORDER 4 @@ -314,6 +314,7 @@ static frontend *new_window(void) midend_new_game(fe->me, NULL); fe->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + gtk_window_set_title(GTK_WINDOW(fe->window), game_name); #if 0 gtk_window_set_resizable(GTK_WINDOW(fe->window), FALSE); #else @@ -11,6 +11,8 @@ #include "puzzles.h" #include "tree234.h" +const char *const game_name = "Net"; + #define PI 3.141592653589793238462643383279502884197169399 #define MATMUL(xr,yr,m,x,y) do { \ @@ -93,6 +93,7 @@ void random_free(random_state *state); /* * Game-specific routines */ +extern const char *const game_name; game_params *default_params(void); int game_fetch_preset(int i, char **name, game_params **params); void free_params(game_params *params); @@ -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); } |