moved input_methods to QEmacsState
qe_register_binding takes ModeDef* and returns status cosmetic changes in QEDisplay API added int dpy_init(QEditScreen *s, QEDisplay *dpy, int w, int h); copies *dpy (or dummy_dpy if NULL) to QEditScreen and calls method simplified dpy_init methods and calls inlined 5 more methods moved dummy_dpy to display.c and simplified simplified to_hex simplified qe_colors array handling
This commit is contained in:
parent
de952df347
commit
28397f424f
14 changed files with 256 additions and 304 deletions
5
x11.c
5
x11.c
|
|
@ -80,7 +80,6 @@ static int update_nb;
|
|||
static CSSRect update_rects[UPDATE_MAX_REGIONS];
|
||||
#endif
|
||||
|
||||
static QEDisplay x11_dpy;
|
||||
static int visual_depth;
|
||||
|
||||
static int force_tty;
|
||||
|
|
@ -193,8 +192,6 @@ static int term_init(QEditScreen *s, int w, int h)
|
|||
QEStyleDef default_style;
|
||||
XGCValues gc_val;
|
||||
|
||||
memcpy(&s->dpy, &x11_dpy, sizeof(QEDisplay));
|
||||
|
||||
s->private = NULL;
|
||||
s->media = CSS_MEDIA_SCREEN;
|
||||
|
||||
|
|
@ -1679,7 +1676,6 @@ static QEDisplay x11_dpy = {
|
|||
term_probe,
|
||||
term_init,
|
||||
term_close,
|
||||
NULL,
|
||||
term_flush,
|
||||
x11_is_user_input_pending,
|
||||
term_fill_rectangle,
|
||||
|
|
@ -1691,6 +1687,7 @@ static QEDisplay x11_dpy = {
|
|||
term_selection_activate,
|
||||
term_selection_request,
|
||||
NULL, /* dpy_invalidate */
|
||||
NULL, /* dpy_cursor_at */
|
||||
x11_bmp_alloc,
|
||||
x11_bmp_free,
|
||||
x11_bmp_draw,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue