summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-05-28 21:47:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-05-28 21:47:01 -0700
commit6b5d3a51723b463eaac49c4a5d3c96d7b5973a16 (patch)
tree611243639edf65d42f1f0adbb0c8f7f7adb841d6 /src/frame.h
parent4d05fe986c0ce9f5c06f9655961e56eb80db7e63 (diff)
downloademacs-6b5d3a51723b463eaac49c4a5d3c96d7b5973a16.tar.gz
* frame.c, frame.h (frame_char_to_pixel_position)
(frame_set_mouse_position): Now static, and made private in frame.c rather than public in frame.h.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/frame.h b/src/frame.h
index 60d3e3680f1..0ee97f0b3f3 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1353,38 +1353,6 @@ x_set_bitmap_icon (struct frame *f)
}
#endif /* !HAVE_NS */
-
-/* Convert character coordinates X and Y to pixel
- coordinates PIX_X and PIX_Y on frame F. */
-
-INLINE void
-frame_char_to_pixel_position (struct frame *f, int x, int y, int *pix_x, int *pix_y)
-{
- *pix_x = FRAME_COL_TO_PIXEL_X (f, x) + FRAME_COLUMN_WIDTH (f) / 2;
- *pix_y = FRAME_LINE_TO_PIXEL_Y (f, y) + FRAME_LINE_HEIGHT (f) / 2;
-
- if (*pix_x < 0)
- *pix_x = 0;
- if (*pix_x > FRAME_PIXEL_WIDTH (f))
- *pix_x = FRAME_PIXEL_WIDTH (f);
-
- if (*pix_y < 0)
- *pix_y = 0;
- if (*pix_y > FRAME_PIXEL_HEIGHT (f))
- *pix_y = FRAME_PIXEL_HEIGHT (f);
-}
-
-/* Reposition mouse pointer to character coordinates X and Y on frame F. */
-
-INLINE
-void frame_set_mouse_position (struct frame *f, int x, int y)
-{
- int pix_x, pix_y;
-
- frame_char_to_pixel_position (f, x, y, &pix_x, &pix_y);
- frame_set_mouse_pixel_position (f, pix_x, pix_y);
-}
-
#endif /* HAVE_WINDOW_SYSTEM */
INLINE void