summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-20 12:16:27 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-20 12:16:27 +0800
commitfbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1 (patch)
tree0115024ce0ae06c7e304b9c5ae196e5954458803 /include
parent3dff4118f19d96c1e38e0b6f2a6dc348de83ecae (diff)
downloadpttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar
pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.gz
pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.bz2
pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.lz
pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.xz
pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.zst
pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.zip
- grayout: API change, from [y,end) to [y,end]
- feature names change: now HAVE_GRAYOUT - edit ask() changed to vmsg to prevent standout() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3713 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/common.h6
-rw-r--r--include/proto.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index dcdfb8ad..b4f47ecc 100644
--- a/include/common.h
+++ b/include/common.h
@@ -241,6 +241,12 @@
#define EDITFLAG_TEXTONLY (0x00000001)
#define EDITFLAG_UPLOAD (0x00000002)
+/* ----------------------------------------------------- */
+/* Grayout Levels */
+/* ----------------------------------------------------- */
+#define GRAYOUT_BOLD (-1)
+#define GRAYOUT_DARK (0)
+#define GRAYOUT_NORM (1)
/* ----------------------------------------------------- */
/* Macros */
diff --git a/include/proto.h b/include/proto.h
index 849a8d42..b56690cf 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -581,8 +581,8 @@ void rscroll(void);
void region_scroll_up(int top, int bottom);
void screen_backup(screen_backup_t *buf);
void screen_restore(const screen_backup_t *buf);
-#define HAVE_SCREEN_GRAYOUT
-void grayout_lines(int start, int end, int level);
+#define HAVE_GRAYOUT
+void grayout(int start, int end, int level);
/* stuff */
#define isprint2(ch) ((ch & 0x80) || isprint(ch))