]> granicus.if.org Git - nethack/commitdiff
(from Yitzhak)
authornethack.allison <nethack.allison>
Thu, 28 Mar 2002 14:24:29 +0000 (14:24 +0000)
committernethack.allison <nethack.allison>
Thu, 28 Mar 2002 14:24:29 +0000 (14:24 +0000)
- mostly from Yitzhak, with a modification based on subsequent discussion.

After installing everything (mail, cvs, etc) I found the compile was
broken.

Yitzhak: This fixes the compile.  I used LONG for the types because using DWORD
conflicted in Borland with signed/unsigned compare mismatches.

[Also works around some perm_invent code destined for a later patch that got
rolled in prematurely]

win/win32/mswproc.c
win/win32/winMS.h

index 81e6c53b6a35eac84307cb0ec50fca63097ca78e..d7d3ffc4da1462ef574cc53f5e4931ef9712368c 100644 (file)
@@ -1181,7 +1181,7 @@ int mswin_select_menu(winid wid, int how, MENU_ITEM_P **selected)
 void mswin_update_inventory()
 {
        logDebug("mswin_update_inventory()\n");
-    if (program_state.something_worth_saving
+    if (program_state.something_worth_saving && flags.perm_invent)
         display_inventory(NULL, FALSE);
 }
 
index 80d09fa93d043230c694074b9b094c38b6b8aa31..0e685dc34deeba65330c6e7c6122450d2308f171 100644 (file)
@@ -67,6 +67,16 @@ typedef struct mswin_nhwindow_app {
 
     DWORD       saveRegistrySettings; /* Flag if we should save this time */
     DWORD       regNetHackMode;   /* NetHack mode means no Windows keys in some places */
+
+       LONG    regMainMinX;
+       LONG    regMainMinY;
+       LONG    regMainMaxX;
+       LONG    regMainMaxY;
+       LONG    regMainLeft;
+       LONG    regMainTop;
+       LONG    regMainBottom;
+       LONG    regMainRight;
+       DWORD   regMainShowState;
 } NHWinApp, *PNHWinApp;
 
 #define E extern
@@ -90,7 +100,7 @@ void mswin_display_nhwindow(winid wid, BOOLEAN_P block);
 void mswin_destroy_nhwindow(winid wid);
 void mswin_curs(winid wid, int x, int y);
 void mswin_putstr(winid wid, int attr, const char *text);
-void mswin_putstr_ex(winid wid, int attr, const char *text, boolean append);
+void mswin_putstr_ex(winid wid, int attr, const char *text, int);
 void mswin_display_file(const char *filename,BOOLEAN_P must_exist);
 void mswin_start_menu(winid wid);
 void mswin_add_menu(winid wid, int glyph, const ANY_P * identifier,