Set h_config and h_flags properly concerning graphics in curses.
authorDavid Griffith <dave@661.org>
Mon, 22 Jul 2019 00:38:34 +0000 (17:38 -0700)
committerDavid Griffith <dave@661.org>
Mon, 22 Jul 2019 00:40:43 +0000 (17:40 -0700)
I noticed this was being done in the old V6 semi-support for the dumb
interface.  For some reason, Alembic didn't see fit to copy it over to
when he submitted his V6 semi-support for the curses interface.

This should probably be done for SDL as well.

src/curses/ux_pic.c

index c413233553f0e5ac53bc5f50798ba1e00f5cd80e..d765ebac85daa4cdf651fcedb01b52965800d6a9 100644 (file)
@@ -164,6 +164,10 @@ bool unix_init_pictures (void)
 
     success = TRUE;
   } /* for */
+
+  if (success) h_config |= CONFIG_PICTURES;
+  else h_flags &= ~GRAPHICS_FLAG;
+
   return success;
 }