]> granicus.if.org Git - nethack/commitdiff
Fix compile when no ENHANCED_SYMBOLS
authorRay Chason <Ray Chason>
Sun, 9 Oct 2022 13:04:23 +0000 (09:04 -0400)
committerRay Chason <Ray Chason>
Sun, 9 Oct 2022 13:04:23 +0000 (09:04 -0400)
sys/msdos/vidvesa.c
sys/msdos/vidvga.c

index 45504a89029658b14e646df237b8669697d29198..ac0f3fcc10f027a6e6f1f23c17c3934516db6c58 100644 (file)
@@ -679,6 +679,7 @@ vesa_xputg(const glyph_info *glyphinfo)
     uint32_t attr = (g_attribute == 0) ? attrib_gr_normal : g_attribute;
     int ry;
 
+#ifdef ENHANCED_SYMBOLS
     if (SYMHANDLING(H_UTF8) && glyphinfo->gm.u && glyphinfo->gm.u->utf8str) {
         ch = glyphinfo->gm.u->utf32ch;
         if (vesa_pixel_size > 8 && glyphinfo->gm.u->ucolor != 0) {
@@ -687,6 +688,7 @@ vesa_xputg(const glyph_info *glyphinfo)
             attr = glyphinfo->gm.u->ucolor | 0x80000000;
         }
     }
+#endif
 
     row = currow;
     col = curcol;
@@ -1075,9 +1077,11 @@ vesa_Init(void)
     vesa_SwitchMode(vesa_mode);
     vesa_SetViewPort();
     windowprocs.win_cliparound = vesa_cliparound;
+#ifdef ENHANCED_SYMBOLS
     if (vesa_pixel_size > 8) {
         windowprocs.wincap2 |= WC2_U_24BITCOLOR;
     }
+#endif
 #ifdef USE_TILES
     paletteptr = get_palette();
     iflags.tile_view = TRUE;
index 062b6cff575cac40ba7c7f1fcc178fa690d4b2a3..178bba54dad42950e499b20920fb09061af42d99 100644 (file)
@@ -373,10 +373,12 @@ vga_xputg(const glyph_info *glyphinfo)
     int attr;
     int ry;
 
+#ifdef ENHANCED_SYMBOLS
     if (psf_font != NULL && SYMHANDLING(H_UTF8) && glyphinfo->gm.u
             && glyphinfo->gm.u->utf8str) {
         ch = glyphinfo->gm.u->utf32ch;
     }
+#endif
 
     /* If statue glyph, map to the generic statue */
 #if 0