summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-07-04 20:49:37 +0200
committerBardur Arantsson <bardur@scientician.net>2014-07-04 20:49:37 +0200
commit4f0516c42de23fedbd77e78b563b5b63c99a7bdc (patch)
tree5e9c0eea06eed3a62d1025fa34071cfcc2823e9b
parent25f27454b680ae37439ef2f573988f74ebbb90e6 (diff)
Remove TERM_XTRA_FROSH
-rw-r--r--src/main-sdl.c21
-rw-r--r--src/main-xxx.c25
-rw-r--r--src/z-term.c7
-rw-r--r--src/z-term.h5
4 files changed, 3 insertions, 55 deletions
diff --git a/src/main-sdl.c b/src/main-sdl.c
index 4e4dfd64..f42941e4 100644
--- a/src/main-sdl.c
+++ b/src/main-sdl.c
@@ -558,23 +558,6 @@ static errr Term_xtra_sdl(int n, int v)
return (0);
}
- case TERM_XTRA_FROSH:
- {
- /*
- * Flush a row of output XXX XXX XXX
- *
- * This action should make sure that row "v" of the "output"
- * to the window will actually appear on the window.
- *
- * This action is optional, assuming that "Term_text_xxx()"
- * (and similar functions) draw directly to the screen, or
- * that the "TERM_XTRA_FRESH" entry below takes care of any
- * necessary flushing issues.
- */
-
- return (1);
- }
-
case TERM_XTRA_FRESH:
{
/*
@@ -584,9 +567,7 @@ static errr Term_xtra_sdl(int n, int v)
* window will actually appear on the window.
*
* This action is optional, assuming that "Term_text_xxx()"
- * (and similar functions) draw directly to the screen, or
- * that the "TERM_XTRA_FROSH" entry above takes care of any
- * necessary flushing issues.
+ * (and similar functions) draw directly to the screen.
*/
/* If terminal display has been held for any reason,
diff --git a/src/main-xxx.c b/src/main-xxx.c
index 0c07b161..7ba92c5c 100644
--- a/src/main-xxx.c
+++ b/src/main-xxx.c
@@ -275,23 +275,6 @@ static errr Term_xtra_xxx(int n, int v)
return (0);
}
- case TERM_XTRA_FROSH:
- {
- /*
- * Flush a row of output XXX XXX XXX
- *
- * This action should make sure that row "v" of the "output"
- * to the window will actually appear on the window.
- *
- * This action is optional, assuming that "Term_text_xxx()"
- * (and similar functions) draw directly to the screen, or
- * that the "TERM_XTRA_FRESH" entry below takes care of any
- * necessary flushing issues.
- */
-
- return (0);
- }
-
case TERM_XTRA_FRESH:
{
/*
@@ -301,9 +284,7 @@ static errr Term_xtra_xxx(int n, int v)
* window will actually appear on the window.
*
* This action is optional, assuming that "Term_text_xxx()"
- * (and similar functions) draw directly to the screen, or
- * that the "TERM_XTRA_FROSH" entry above takes care of any
- * necessary flushing issues.
+ * (and similar functions) draw directly to the screen.
*/
return (0);
@@ -568,10 +549,6 @@ static void term_data_link(int i)
/* This may make things slightly more efficient. */
/* td->t->never_bored = TRUE; */
- /* Ignore the "TERM_XTRA_FROSH" action XXX XXX XXX */
- /* This may make things slightly more efficient. */
- /* td->t->never_frosh = TRUE; */
-
/* Erase with "white space" XXX XXX XXX */
/* td->t->attr_blank = TERM_WHITE; */
/* td->t->char_blank = ' '; */
diff --git a/src/z-term.c b/src/z-term.c
index d1cec6f5..c431f6c0 100644
--- a/src/z-term.c
+++ b/src/z-term.c
@@ -617,9 +617,7 @@ static void Term_fresh_row_text(int y, int x1, int x2)
* Note that "Term_xtra(TERM_XTRA_CLEAR,0)" must erase the entire screen,
* including the cursor, if needed, and may place the cursor anywhere.
*
- * Note that "Term_xtra(TERM_XTRA_FROSH,y)" will be always be called
- * after any row "y" has been "flushed", unless the "Term->never_frosh"
- * flag is set, and "Term_xtra(TERM_XTRA_FRESH,0)" will be called after
+ * Note that "Term_xtra(TERM_XTRA_FRESH,0)" will be called after
* all of the rows have been "flushed".
*
* The helper functions currently "skip" any grids which already contain
@@ -837,9 +835,6 @@ errr Term_fresh(void)
/* This row is all done */
Term->x1[y] = w;
Term->x2[y] = 0;
-
- /* Hack -- Flush that row (if allowed) */
- if (!Term->never_frosh) Term_xtra(TERM_XTRA_FROSH, y);
}
}
diff --git a/src/z-term.h b/src/z-term.h
index 8a6ed3a0..80562786 100644
--- a/src/z-term.h
+++ b/src/z-term.h
@@ -80,8 +80,6 @@ struct term_win
* - Flag "never_bored"
* Never call the "TERM_XTRA_BORED" action
*
- * - Flag "never_frosh"
- * Never call the "TERM_XTRA_FROSH" action
*
*
* - Value "attr_blank"
@@ -145,7 +143,6 @@ struct term
bool_ soft_cursor;
bool_ always_text;
bool_ never_bored;
- bool_ never_frosh;
byte attr_blank;
char char_blank;
@@ -202,7 +199,6 @@ struct term
*
* The "TERM_XTRA_EVENT" action uses "v" to "wait" for an event
* The "TERM_XTRA_SHAPE" action uses "v" to "show" the cursor
- * The "TERM_XTRA_FROSH" action uses "v" for the index of the row
* The "TERM_XTRA_ALIVE" action uses "v" to "activate" (or "close")
* The "TERM_XTRA_LEVEL" action uses "v" to "resume" (or "suspend")
* The "TERM_XTRA_DELAY" action uses "v" as a "millisecond" value
@@ -213,7 +209,6 @@ struct term
#define TERM_XTRA_FLUSH 2 /* Flush all pending events */
#define TERM_XTRA_CLEAR 3 /* Clear the entire window */
#define TERM_XTRA_SHAPE 4 /* Set cursor shape (optional) */
-#define TERM_XTRA_FROSH 5 /* Flush one row (optional) */
#define TERM_XTRA_FRESH 6 /* Flush all rows (optional) */
#define TERM_XTRA_NOISE 7 /* Make a noise (optional) */
#define TERM_XTRA_BORED 9 /* Handle stuff when bored (optional) */