#ifdef GLYPH_DEBUG
-static int window_to_frame_vpos (struct window *, int);
-static int window_to_frame_hpos (struct window *, int);
-#define WINDOW_TO_FRAME_VPOS(W, VPOS) window_to_frame_vpos (W, VPOS)
-#define WINDOW_TO_FRAME_HPOS(W, HPOS) window_to_frame_hpos (W, HPOS)
-
/* One element of the ring buffer containing redisplay history
information. */
}
-#else /* not GLYPH_DEBUG */
-
-#define WINDOW_TO_FRAME_VPOS(W, VPOS) ((VPOS) + WINDOW_TOP_EDGE_LINE (W))
-#define WINDOW_TO_FRAME_HPOS(W, HPOS) ((HPOS) + WINDOW_LEFT_EDGE_COL (W))
-
#endif /* GLYPH_DEBUG */
VPOS and HPOS translations
**********************************************************************/
-#ifdef GLYPH_DEBUG
-
/* Translate vertical position VPOS which is relative to window W to a
vertical position relative to W's frame. */
return hpos;
}
-#endif /* GLYPH_DEBUG */
-
-
\f
/**********************************************************************
Redrawing Frames
a new cursor position has been computed. */
&& w->cursor.vpos < WINDOW_TOTAL_LINES (w))
{
- int wx = WINDOW_TO_FRAME_HPOS (w, w->cursor.hpos);
- int wy = WINDOW_TO_FRAME_VPOS (w, w->cursor.vpos);
+ int wx = window_to_frame_hpos (w, w->cursor.hpos);
+ int wy = window_to_frame_vpos (w, w->cursor.vpos);
wx += max (0, w->left_margin_cols);
a new cursor position has been computed. */
&& w->cursor.vpos < WINDOW_TOTAL_LINES (w))
{
- int x = WINDOW_TO_FRAME_HPOS (w, w->cursor.hpos);
- int y = WINDOW_TO_FRAME_VPOS (w, w->cursor.vpos);
+ int x = window_to_frame_hpos (w, w->cursor.hpos);
+ int y = window_to_frame_vpos (w, w->cursor.vpos);
x += max (0, w->left_margin_cols);
cursor_to (f, y, x);