]> granicus.if.org Git - nethack/commitdiff
Pilemark support for windows
authornhmall <mjnh@persona.ca>
Sat, 20 Jun 2015 12:33:49 +0000 (08:33 -0400)
committernhmall <mjnh@persona.ca>
Sat, 20 Jun 2015 12:33:49 +0000 (08:33 -0400)
 Changes to be committed:
modified:   win/win32/mhmap.c
modified:   win/win32/winMS.h
modified:   win/win32/winhack.c

win/win32/mhmap.c
win/win32/winMS.h
win/win32/winhack.c

index 71f82791e4b75d9d50eeb1391bc00fc31f1c8e9d..c3a935ce8c78d4ae2d5f5f61fbe24323f9d6f375 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 mhmap.c $NHDT-Date: 1434321129 2015/06/14 22:32:09 $  $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.53 $ */
+/* NetHack 3.6 mhmap.c $NHDT-Date: 1434803617 2015/06/20 12:33:37 $  $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.54 $ */
 /* Copyright (C) 2001 by Alex Kompel      */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -763,7 +763,7 @@ onPaint(HWND hWnd)
                         layer ++;
                      }
 
-#ifndef IGNORE_NHMALL
+#ifdef USE_PILEMARK
                      /* rely on NetHack core helper routine */
                      (void) mapglyph(data->map[i][j], &mgch, &color,
                                         &special, i, j);
@@ -789,7 +789,7 @@ onPaint(HWND hWnd)
                         SelectObject(hdcPetMark, bmPetMarkOld);
                         DeleteDC(hdcPetMark);
                     }
-#ifndef IGNORE_NHMALL
+#ifdef USE_PILEMARK
                     if ((glyph != NO_GLYPH) && (special & MG_OBJPILE)) {
                         /* apply pilemark transparently over other image */
                         HDC hdcPileMark;
index 3595ba300b55d24b81595165368201f24613207a..6be564015f011b6aab68629d7fe9d46c67747677 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 winMS.h $NHDT-Date: 1434321135 2015/06/14 22:32:15 $  $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.39 $ */
+/* NetHack 3.6 winMS.h $NHDT-Date: 1434803624 2015/06/20 12:33:44 $  $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.40 $ */
 /* Copyright (C) 2001 by Alex Kompel */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -71,7 +71,7 @@ typedef struct mswin_nhwindow_app {
 
     HBITMAP bmpTiles;
     HBITMAP bmpPetMark;
-#ifndef IGNORE_NHMALL
+#ifdef USE_PILEMARK
     HBITMAP bmpPileMark;
 #endif
     HBITMAP bmpMapTiles; /* custom tiles bitmap */
index 5f572db50f2023e1d382a7b62e0856bf5b330f0b..d47762d8cc0918e9911ac1fb0e5236890edc15cb 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6    winhack.c    $NHDT-Date: 1432512811 2015/05/25 00:13:31 $  $NHDT-Branch: master $:$NHDT-Revision: 1.40 $ */
+/* NetHack 3.6    winhack.c    $NHDT-Date: 1434803624 2015/06/20 12:33:44 $  $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.43 $ */
 /* Copyright (C) 2001 by Alex Kompel      */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -103,12 +103,14 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
         panic("cannot load tiles bitmap");
     _nethack_app.bmpPetMark =
         LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_PETMARK));
-#ifndef IGNORE_NHMALL
+    if (_nethack_app.bmpPetMark == NULL)
+        panic("cannot load pet mark bitmap");
+#ifdef USE_PILEMARK
     _nethack_app.bmpPileMark =
         LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_PILEMARK));
+    if (_nethack_app.bmpPileMark == NULL)
+        panic("cannot load pile mark bitmap");
 #endif
-    if (_nethack_app.bmpPetMark == NULL)
-        panic("cannot load pet mark bitmap");
     _nethack_app.bmpRip = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_RIP));
     if (_nethack_app.bmpRip == NULL)
         panic("cannot load rip bitmap");