OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33f0f81
)
Brought main-gcu.c up-to-date with the changes to z-term.h.
author
Eric Branlund
<ebranlund@fastmail.com>
Sun, 9 Aug 2020 14:45:17 +0000
(07:45 -0700)
committer
Hourier
<hourier@users.sourceforge.jp>
Wed, 12 Aug 2020 11:52:08 +0000
(20:52 +0900)
src/main-gcu.c
patch
|
blob
|
history
diff --git
a/src/main-gcu.c
b/src/main-gcu.c
index
82f9e97
..
d8c8758
100644
(file)
--- a/
src/main-gcu.c
+++ b/
src/main-gcu.c
@@
-184,7
+184,7
@@
typedef struct term_data term_data;
struct term_data
{
struct term_data
{
- term t;
+ term
_type
t;
WINDOW *win;
};
WINDOW *win;
};
@@
-518,7
+518,7
@@
static errr Term_xtra_gcu_alive(int v)
nl();
/* Hack -- make sure the cursor is visible */
nl();
/* Hack -- make sure the cursor is visible */
-
T
erm_xtra(TERM_XTRA_SHAPE, 1);
+
t
erm_xtra(TERM_XTRA_SHAPE, 1);
/* Flush the curses buffer */
(void)refresh();
/* Flush the curses buffer */
(void)refresh();
@@
-595,7
+595,7
@@
static bool init_sound(void)
/*
* Init the "curses" system
*/
/*
* Init the "curses" system
*/
-static void Term_init_gcu(term *t)
+static void Term_init_gcu(term
_type
*t)
{
term_data *td = (term_data *)(t->data);
{
term_data *td = (term_data *)(t->data);
@@
-619,7
+619,7
@@
static void Term_init_gcu(term *t)
/*
* Nuke the "curses" system
*/
/*
* Nuke the "curses" system
*/
-static void Term_nuke_gcu(term *t)
+static void Term_nuke_gcu(term
_type
*t)
{
term_data *td = (term_data *)(t->data);
{
term_data *td = (term_data *)(t->data);
@@
-630,7
+630,7
@@
static void Term_nuke_gcu(term *t)
if (--active != 0) return;
/* Hack -- make sure the cursor is visible */
if (--active != 0) return;
/* Hack -- make sure the cursor is visible */
-
T
erm_xtra(TERM_XTRA_SHAPE, 1);
+
t
erm_xtra(TERM_XTRA_SHAPE, 1);
#ifdef A_COLOR
/* Reset colors to defaults */
#ifdef A_COLOR
/* Reset colors to defaults */
@@
-697,7
+697,7
@@
static errr Term_xtra_gcu_event(int v)
}
/* Enqueue the keypress */
}
/* Enqueue the keypress */
-
Term_keypress
(i);
+
term_key_push
(i);
/* Success */
return (0);
/* Success */
return (0);
@@
-747,7
+747,7
@@
static errr Term_xtra_gcu_event(int v)
if ((i != 1) || (!buf[0])) return (1);
/* Enqueue the keypress */
if ((i != 1) || (!buf[0])) return (1);
/* Enqueue the keypress */
-
Term_keypress
(buf[0]);
+
term_key_push
(buf[0]);
/* Success */
return (0);
/* Success */
return (0);
@@
-995,7
+995,7
@@
static errr Term_text_gcu(int x, int y, int n, byte a, concptr s)
static errr term_data_init(term_data *td, int rows, int cols, int y, int x)
{
static errr term_data_init(term_data *td, int rows, int cols, int y, int x)
{
- term *t = &td->t;
+ term
_type
*t = &td->t;
/* Make sure the window has a positive size */
if (rows <= 0 || cols <= 0) return (0);
/* Make sure the window has a positive size */
if (rows <= 0 || cols <= 0) return (0);
@@
-1034,7
+1034,7
@@
static errr term_data_init(term_data *td, int rows, int cols, int y, int x)
t->data = td;
/* Activate it */
t->data = td;
/* Activate it */
-
T
erm_activate(t);
+
t
erm_activate(t);
/* Success */
/* Success */
@@
-1256,7
+1256,7
@@
errr init_gcu(int argc, char *argv[])
}
/* Activate the "Angband" window screen */
}
/* Activate the "Angband" window screen */
-
T
erm_activate(&data[0].t);
+
t
erm_activate(&data[0].t);
/* Store */
term_screen = &data[0].t;
/* Store */
term_screen = &data[0].t;