mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 15:25:01 +00:00
More reorg.
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
/* PDCurses */
|
||||
|
||||
#include "pdcx11.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
30
x11new/x11.c
30
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 =
|
||||
"<BtnMotion>: 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user