OSDN Git Service

Remove plog for debug.
[hengband/hengband.git] / src / main-gcu.c
index 647c69e..41a4968 100644 (file)
@@ -254,6 +254,9 @@ static term_data data[MAX_TERM_DATA];
 #endif
 
 
+#include <locale.h>
+
+
 /*
  * XXX XXX Hack -- POSIX uses "O_NONBLOCK" instead of "O_NDELAY"
  *
@@ -600,7 +603,7 @@ static errr Term_xtra_gcu_alive(int v)
       mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
 #else
       /* this moves curses to bottom right corner */
-      mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
+      mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
 #endif
 
       /* Exit curses */
@@ -736,7 +739,7 @@ static void Term_nuke_gcu(term *t)
    mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
 #else
    /* This moves curses to bottom right corner */
-   mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
+   mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
 #endif
 
    /* Flush the curses buffer */
@@ -1177,6 +1180,9 @@ static errr term_data_init(term_data *td, int rows, int cols, int y, int x)
 
 static void hook_quit(cptr str)
 {
+       /* Unused */
+       (void)str;
+
        /* Exit curses */
        endwin();
 }
@@ -1197,6 +1203,13 @@ errr init_gcu(int argc, char *argv[])
    int num_term = 4, next_win = 0;
    char path[1024];
 
+   /* Unused */
+   (void)argc;
+   (void)argv;
+
+
+   setlocale(LC_ALL, "");
+
 #ifdef USE_SOUND
 
    /* Build the "sound" path */