summaryrefslogtreecommitdiff
path: root/src/z-term.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-25 19:12:26 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-25 19:21:05 +0200
commit6991960a8b0bacc87c2c5183c2098e606bf5d72d (patch)
tree1088027a1cb63dcd5b7fd6eb9838b44202c2ca4c /src/z-term.c
parent760c6eda0f8f553cab601f02d5faf8c1ef308b89 (diff)
Remove cmovie support
Diffstat (limited to 'src/z-term.c')
-rw-r--r--src/z-term.c88
1 files changed, 0 insertions, 88 deletions
diff --git a/src/z-term.c b/src/z-term.c
index 4e89ffb7..c8d30941 100644
--- a/src/z-term.c
+++ b/src/z-term.c
@@ -271,19 +271,6 @@
*/
term *Term = NULL;
-/* File handler for saving movies */
-FILE *movfile = NULL;
-int do_movies = 0; /* Later set this as a global */
-/* set to 1 if you want movies made */
-time_t lastc;
-int last_paused = 0;
-int cmovie_get_msecond(void);
-
-/* Record cmovies with millisecond frame rate */
-long cmov_last_time_msec;
-long cmov_delta_time_msec;
-
-
/*** Local routines ***/
@@ -1307,16 +1294,6 @@ errr Term_fresh(void)
byte na = Term->attr_blank;
char nc = Term->char_blank;
- if ((do_movies == 1) && IN_MAINWINDOW)
- {
- if (!cmovie_get_msecond())
- {
- fprintf(movfile, "S:%ld:\n", cmov_delta_time_msec);
- }
- fprintf(movfile, "C:\n");
- last_paused = 0;
- }
-
/* Physically erase the entire window */
Term_xtra(TERM_XTRA_CLEAR, 0);
@@ -1460,13 +1437,6 @@ errr Term_fresh(void)
/* Flush each "modified" row */
if (x1 <= x2)
{
- if ((do_movies == 1) && IN_MAINWINDOW)
- {
- /* Most magic happens here */
- cmovie_record_line(y);
- last_paused = 0;
- }
-
/* Always use "Term_pict()" */
if (Term->always_pict)
{
@@ -1930,17 +1900,6 @@ errr Term_clear(void)
*/
errr Term_redraw(void)
{
- /* Pat */
- if ((do_movies == 1) && IN_MAINWINDOW)
- {
- if (!cmovie_get_msecond())
- {
- fprintf(movfile, "S:%ld:\n", cmov_delta_time_msec);
- }
- last_paused = 1;
- }
- /* Endpat */
-
/* Force "total erase" */
Term->total_erase = TRUE;
@@ -2156,14 +2115,6 @@ errr Term_inkey(char *ch, bool_ wait, bool_ take)
Term_xtra(TERM_XTRA_BORED, 0);
}
- /* PatN */
- if ((do_movies == 1) && (last_paused == 0) && (!cmovie_get_msecond()))
- {
- fprintf(movfile, "S:%ld:\n", cmov_delta_time_msec);
- last_paused = 1;
- }
- /* PatNEnd */
-
/* Wait */
if (wait)
{
@@ -2735,42 +2686,3 @@ errr term_init(term *t, int w, int h, int k)
/* Success */
return (0);
}
-
-/*
- * Determine if we are called in the same second as the last time?
- * This *ASSUMES* that time_t is seconds past something. Is this portable?
- */
-int cmovie_get_msecond(void)
-{
-#ifndef USE_PRECISE_CMOVIE
- /* Not very precise, but portable */
- time_t thisc;
-
- thisc = time(NULL);
-
- cmov_delta_time_msec = 300;
-
- if (thisc == lastc)
- {
- return 1;
- }
- return 0;
-#else /* Very precise but needs main-foo.c to define TERM_XTRA_GET_DELAY */
-Term_xtra(TERM_XTRA_GET_DELAY, 0);
-
- cmov_delta_time_msec = Term_xtra_long - cmov_last_time_msec;
- cmov_last_time_msec = Term_xtra_long;
- return 0;
-#endif
-}
-
-void cmovie_init_second()
-{
-#ifndef USE_PRECISE_CMOVIE
- /* Not very precise, but portable */
- cmov_last_time_msec = 0;
-#else /* Precise but need main-foo.c to have TERM_XTRA_GET_DELAY */
- Term_xtra(TERM_XTRA_GET_DELAY, 0);
- cmov_last_time_msec = Term_xtra_long;
-#endif
-}