Stdscr
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
#include "cursesd.h"
|
#include "cursesd.h"
|
||||||
|
|
||||||
static int32_t endwinflag;
|
static int32_t endwinflag;
|
||||||
|
WINDOW *stdscr;
|
||||||
|
|
||||||
WINDOW *newwin(int32_t nlines,int32_t ncols,int32_t begin_y,int32_t begin_x)
|
WINDOW *newwin(int32_t nlines,int32_t ncols,int32_t begin_y,int32_t begin_x)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ struct cursesd_info
|
|||||||
{
|
{
|
||||||
uint8_t screen[LINES][COLS];
|
uint8_t screen[LINES][COLS];
|
||||||
int32_t x,y;
|
int32_t x,y;
|
||||||
} *stdscr;
|
};
|
||||||
|
extern WINDOW *stdscr;
|
||||||
typedef struct cursesd_info WINDOW;
|
typedef struct cursesd_info WINDOW;
|
||||||
typedef char chtype;
|
typedef char chtype;
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,6 @@
|
|||||||
//#include <curses.h>
|
//#include <curses.h>
|
||||||
//#include <ctype.h>
|
//#include <ctype.h>
|
||||||
//#include <string.h>
|
//#include <string.h>
|
||||||
#ifndef BUILD_ROGUE
|
|
||||||
#include <curses.h>
|
|
||||||
#else
|
|
||||||
#include "cursesd.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "rogue.h"
|
#include "rogue.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user