aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-10-02 16:08:27 +0400
committerDmitry Antipov2013-10-02 16:08:27 +0400
commit29bf4de47479ed29ef17736d0a5cadf7e8dae209 (patch)
treee7dc0ef096e5b4ba8c5b018c7b2c8f5c2bfa8c7f /src/window.c
parenta30ddace90fb8921b2c40cdaf96e5af37d288f01 (diff)
downloademacs-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/window.c')
-rw-r--r--src/window.c8
1 files changed, 6 insertions, 2 deletions
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