]> granicus.if.org Git - nethack/commitdiff
win32_gui: follow-up bit on x64 patch (premature optimization)
authorAlex Kompel <barbos+nethack@gmail.com>
Tue, 14 Apr 2015 16:33:05 +0000 (09:33 -0700)
committerAlex Kompel <barbos+nethack@gmail.com>
Tue, 14 Apr 2015 16:33:05 +0000 (09:33 -0700)
win/win32/mhmsg.h
win/win32/mswproc.c

index 8030b4391f75e86fb8969ab8e864c1264390d4aa..8e48a3b01c333814c8255f3f3051d945a9680253 100644 (file)
@@ -28,9 +28,9 @@ typedef struct mswin_nhmsg_add_wnd {
 } MSNHMsgAddWnd, *PMSNHMsgAddWnd;
 
 typedef struct mswin_nhmsg_putstr {
-  int            attr;
-  const char* text;
-  boolean        append;
+  int                  attr;
+  const char*          text;
+  int                  append;
 } MSNHMsgPutstr, *PMSNHMsgPutstr;
 
 typedef struct mswin_nhmsg_print_glyph {
index 998158a68b0db8bddb846834105bf6976b53a9ff..b612f79aa6e702d6c5d752dac275cedac6c14aaf 100644 (file)
@@ -988,7 +988,7 @@ void mswin_putstr_ex(winid wid, int attr, const char *text, int app)
                         ZeroMemory(&data, sizeof(data));
                         data.attr = attr;
                         data.text = text;
-                        data.append = !!app;
+                        data.append = app;
                         SendMessage( 
                                 GetNHApp()->windowlist[wid].win, 
                                 WM_MSNH_COMMAND, (WPARAM)MSNH_MSG_PUTSTR, (LPARAM)&data );