diff options
| author | Dmitry Antipov | 2013-10-02 16:08:27 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-02 16:08:27 +0400 |
| commit | 29bf4de47479ed29ef17736d0a5cadf7e8dae209 (patch) | |
| tree | e7dc0ef096e5b4ba8c5b018c7b2c8f5c2bfa8c7f /src | |
| parent | a30ddace90fb8921b2c40cdaf96e5af37d288f01 (diff) | |
| download | emacs-29bf4de47479ed29ef17736d0a5cadf7e8dae209.tar.gz emacs-29bf4de47479ed29ef17736d0a5cadf7e8dae209.zip | |
* window.h (struct window): Prefer enum text_cursor_kinds to int
for phys_cursor_type member. Move the latter, phys_cursor_width,
phys_cursor_ascent and phys_cursor_height under HAVE_WINDOW_SYSTEM.
* window.c (replace_window, make_window): Adjust users.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/window.c | 8 | ||||
| -rw-r--r-- | src/window.h | 12 |
3 files changed, 22 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 14519f874d2..1c4a06ea0f2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2013-10-02 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-10-02 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * window.h (struct window): Prefer enum text_cursor_kinds to int | ||
| 4 | for phys_cursor_type member. Move the latter, phys_cursor_width, | ||
| 5 | phys_cursor_ascent and phys_cursor_height under HAVE_WINDOW_SYSTEM. | ||
| 6 | * window.c (replace_window, make_window): Adjust users. | ||
| 7 | |||
| 8 | 2013-10-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9 | |||
| 3 | * fringe.c (toplevel): Do not use HAVE_WINDOW_SYSTEM because | 10 | * fringe.c (toplevel): Do not use HAVE_WINDOW_SYSTEM because |
| 4 | this module is never compiled otherwise. | 11 | this module is never compiled otherwise. |
| 5 | 12 | ||
diff --git a/src/window.c b/src/window.c index 967307038f4..647a0b812e9 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2008,8 +2008,10 @@ replace_window (Lisp_Object old, Lisp_Object new, int setflag) | |||
| 2008 | memset (&n->cursor, 0, sizeof (n->cursor)); | 2008 | memset (&n->cursor, 0, sizeof (n->cursor)); |
| 2009 | memset (&n->phys_cursor, 0, sizeof (n->phys_cursor)); | 2009 | memset (&n->phys_cursor, 0, sizeof (n->phys_cursor)); |
| 2010 | n->last_cursor_vpos = 0; | 2010 | n->last_cursor_vpos = 0; |
| 2011 | n->phys_cursor_type = -1; | 2011 | #ifdef HAVE_WINDOW_SYSTEM |
| 2012 | n->phys_cursor_type = NO_CURSOR; | ||
| 2012 | n->phys_cursor_width = -1; | 2013 | n->phys_cursor_width = -1; |
| 2014 | #endif | ||
| 2013 | n->must_be_updated_p = 0; | 2015 | n->must_be_updated_p = 0; |
| 2014 | n->pseudo_window_p = 0; | 2016 | n->pseudo_window_p = 0; |
| 2015 | n->window_end_vpos = 0; | 2017 | n->window_end_vpos = 0; |
| @@ -3420,8 +3422,10 @@ make_window (void) | |||
| 3420 | w->nrows_scale_factor = w->ncols_scale_factor = 1; | 3422 | w->nrows_scale_factor = w->ncols_scale_factor = 1; |
| 3421 | w->left_fringe_width = w->right_fringe_width = -1; | 3423 | w->left_fringe_width = w->right_fringe_width = -1; |
| 3422 | w->mode_line_height = w->header_line_height = -1; | 3424 | w->mode_line_height = w->header_line_height = -1; |
| 3423 | w->phys_cursor_type = -1; | 3425 | #ifdef HAVE_WINDOW_SYSTEM |
| 3426 | w->phys_cursor_type = NO_CURSOR; | ||
| 3424 | w->phys_cursor_width = -1; | 3427 | w->phys_cursor_width = -1; |
| 3428 | #endif | ||
| 3425 | w->scroll_bar_width = -1; | 3429 | w->scroll_bar_width = -1; |
| 3426 | w->column_number_displayed = -1; | 3430 | w->column_number_displayed = -1; |
| 3427 | 3431 | ||
diff --git a/src/window.h b/src/window.h index 6d2478ecaf9..cc4332ccf7f 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -240,13 +240,19 @@ struct window | |||
| 240 | without pause. This is the position of last_point. */ | 240 | without pause. This is the position of last_point. */ |
| 241 | int last_cursor_vpos; | 241 | int last_cursor_vpos; |
| 242 | 242 | ||
| 243 | /* Cursor type and width of last cursor drawn on the window. | 243 | #ifdef HAVE_WINDOW_SYSTEM |
| 244 | Used for X and w32 frames; -1 initially. */ | 244 | |
| 245 | int phys_cursor_type, phys_cursor_width; | 245 | /* Cursor type of last cursor drawn on the window. */ |
| 246 | enum text_cursor_kinds phys_cursor_type; | ||
| 247 | |||
| 248 | /* Width of the cursor above. */ | ||
| 249 | int phys_cursor_width; | ||
| 246 | 250 | ||
| 247 | /* This is handy for undrawing the cursor. */ | 251 | /* This is handy for undrawing the cursor. */ |
| 248 | int phys_cursor_ascent, phys_cursor_height; | 252 | int phys_cursor_ascent, phys_cursor_height; |
| 249 | 253 | ||
| 254 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 255 | |||
| 250 | /* Width of left and right fringes, in pixels. | 256 | /* Width of left and right fringes, in pixels. |
| 251 | A value of -1 means use frame values. */ | 257 | A value of -1 means use frame values. */ |
| 252 | int left_fringe_width; | 258 | int left_fringe_width; |