~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
And update makedist.sh to put all the new stuff into the source
[sgt/puzzles]
/
windows.c
diff --git
a/windows.c
b/windows.c
index
f7621df
..
d282d72
100644
(file)
--- a/
windows.c
+++ b/
windows.c
@@
-1065,7
+1065,7
@@
static void init_help(void)
/*
* Start Help.
*/
/*
* Start Help.
*/
-static void start_help(frontend *fe, char *topic)
+static void start_help(frontend *fe, c
onst c
har *topic)
{
char *str = NULL;
int cmd;
{
char *str = NULL;
int cmd;
@@
-2441,7
+2441,9
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = inst;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = inst;
- wndclass.hIcon = LoadIcon(inst, IDI_APPLICATION);
+ wndclass.hIcon = LoadIcon(inst, MAKEINTRESOURCE(200));
+ if (!wndclass.hIcon) /* in case resource file is absent */
+ wndclass.hIcon = LoadIcon(inst, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = NULL;
wndclass.lpszMenuName = NULL;
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = NULL;
wndclass.lpszMenuName = NULL;