diff --git a/x11new/pdcx11.c b/x11new/pdcx11.c index 28c5963d..e69de29b 100644 --- a/x11new/pdcx11.c +++ b/x11new/pdcx11.c @@ -1,34 +0,0 @@ -/* PDCurses */ - -#include "pdcx11.h" - -#include -#include - -unsigned char *Xcurscr; - -int XCursesLINES = 24; -int XCursesCOLS = 80; - -#ifdef PDCDEBUG -void XC_say(const char *msg) -{ - PDC_LOG(("%s:%s", XCLOGMSG, msg)); -} -#endif - -int XCursesInitscr(int argc, char *argv[]) -{ - XC_LOG(("XCursesInitscr() - called\n")); - - if (ERR == XCursesSetupX(argc, argv)) - return ERR; - - XCursesLINES = SP->lines; - LINES = XCursesLINES - SP->linesrippedoff - SP->slklines; - XCursesCOLS = COLS = SP->cols; - - atexit(XCursesExit); - - return OK; -} diff --git a/x11new/x11.c b/x11new/x11.c index 671b579c..62f86d9e 100644 --- a/x11new/x11.c +++ b/x11new/x11.c @@ -197,8 +197,6 @@ static struct {0, 0, 0, 0, 0, 0} }; -#define BITMAPDEPTH 1 - static GC normal_gc, rect_cursor_gc, italic_gc, bold_gc, border_gc; static int font_height, font_width, font_ascent, font_descent, window_width, window_height; @@ -225,6 +223,11 @@ static bool exposed = FALSE; static char *program_name; static bool blinked_off; +unsigned char *Xcurscr; + +int XCursesLINES = 24; +int XCursesCOLS = 80; + bool xc_resize_now = FALSE; char *xc_selection = NULL; long xc_selection_len = 0; @@ -384,6 +387,13 @@ static const char *default_translations = ": XCursesButton()" }; +#ifdef PDCDEBUG +void XC_say(const char *msg) +{ + PDC_LOG(("%s:%s", XCLOGMSG, msg)); +} +#endif + static int _to_utf8(char *outcode, chtype code) { #ifdef PDC_WIDE @@ -2554,3 +2564,19 @@ int XCursesSetupX(int argc, char *argv[]) return OK; /* will get here */ } + +int XCursesInitscr(int argc, char *argv[]) +{ + XC_LOG(("XCursesInitscr() - called\n")); + + if (ERR == XCursesSetupX(argc, argv)) + return ERR; + + XCursesLINES = SP->lines; + LINES = XCursesLINES - SP->linesrippedoff - SP->slklines; + XCursesCOLS = COLS = SP->cols; + + atexit(XCursesExit); + + return OK; +}