Use recursive-lambda icon as default on windows.
authorChris Hanson <org/chris-hanson/cph>
Wed, 23 Dec 2009 07:42:20 +0000 (23:42 -0800)
committerChris Hanson <org/chris-hanson/cph>
Wed, 23 Dec 2009 07:42:20 +0000 (23:42 -0800)
src/microcode/ntscreen.c
src/microcode/ntutl/ntgui.rc
src/microcode/ntutl/schlogo.ico [moved from src/etc/windows/schlogo.ico with 100% similarity]

index 4cb6bff0510418643460fbf0f234913140ed07a1..3559e445b877e5857319812323800fdfb00ea0a1 100644 (file)
@@ -68,6 +68,8 @@ typedef struct tagSCREEN_EVENT_LINK
 #define MAX_LINEINPUT 1024
 
 #define COMPUTE_SCROLL_LINES(height)    ((((height) * 2) + 4) / 5)
+
+#define DEFAULT_ICON "DEFAULT_ICON"
 \f
 typedef struct tagSCREENINFO
 {
@@ -379,7 +381,7 @@ Screen_InitApplication (HANDLE hInstance)
    wndclass.cbClsExtra =    0;
    wndclass.cbWndExtra =    SCREENEXTRABYTES;
    wndclass.hInstance =     hInstance;
-   wndclass.hIcon =         (LoadIcon (hInstance, "SHIELD3_ICON"));
+   wndclass.hIcon =         (LoadIcon (hInstance, DEFAULT_ICON));
    wndclass.hCursor =       (LoadCursor (NULL, IDC_ARROW));
    wndclass.hbrBackground = 0;
    wndclass.lpszMenuName =  0;
@@ -412,7 +414,7 @@ BOOL
 Screen_InitInstance (HANDLE hInstance, int nCmdShow )
 {
   ghInstance = hInstance;
-  ghDefaultIcon = LoadIcon (hInstance, "SHIELD2_ICON");
+  ghDefaultIcon = LoadIcon (hInstance, DEFAULT_ICON);
   return  TRUE;
 }
 \f
@@ -847,7 +849,7 @@ CreateScreenInfo (HWND hWnd)
 
    screen->hWnd                 = hWnd;
    screen->hIcon                =
-     LoadIcon ((HINSTANCE) GetWindowLong(hWnd,GWL_HINSTANCE), "SHIELD3_ICON");
+     LoadIcon ((HINSTANCE) GetWindowLong(hWnd,GWL_HINSTANCE), DEFAULT_ICON);
    screen->chars                = NULL;
    screen->attrs                = NULL;
    screen->write_attribute      = 0;
index 6b862fd243fa66a94e9d8269e2042b4debb2cea4..53a05e52f54a1157f53d69c7dae643e0b4cdc17d 100644 (file)
@@ -2,6 +2,7 @@
 #include "ntgui.h"
 #include "ntdialog.h"
 
+DEFAULT_ICON ICON schlogo.ico
 SHIELD3_ICON ICON shield3.ico
 SHIELD4_ICON ICON shield4.ico
 SHIELD2_ICON ICON shield2.ico