Mercurial > emacs
comparison src/window.c @ 56524:d2661c5fec0b
(Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 24 Jul 2004 21:38:22 +0000 |
parents | 8f77d7fac4d6 |
children | b1738412da70 |
comparison
equal
deleted
inserted
replaced
56523:588fc06a48ae | 56524:d2661c5fec0b |
---|---|
936 /* Check that arguments are integers or floats. */ | 936 /* Check that arguments are integers or floats. */ |
937 CHECK_NUMBER_OR_FLOAT (x); | 937 CHECK_NUMBER_OR_FLOAT (x); |
938 CHECK_NUMBER_OR_FLOAT (y); | 938 CHECK_NUMBER_OR_FLOAT (y); |
939 | 939 |
940 return window_from_coordinates (f, | 940 return window_from_coordinates (f, |
941 FRAME_PIXEL_X_FROM_CANON_X (f, x), | 941 (FRAME_PIXEL_X_FROM_CANON_X (f, x) |
942 FRAME_PIXEL_Y_FROM_CANON_Y (f, y), | 942 + FRAME_INTERNAL_BORDER_WIDTH (f)), |
943 (FRAME_PIXEL_Y_FROM_CANON_Y (f, y) | |
944 + FRAME_INTERNAL_BORDER_WIDTH (f)), | |
943 0, 0, 0, 0); | 945 0, 0, 0, 0); |
944 } | 946 } |
945 | 947 |
946 DEFUN ("window-point", Fwindow_point, Swindow_point, 0, 1, 0, | 948 DEFUN ("window-point", Fwindow_point, Swindow_point, 0, 1, 0, |
947 doc: /* Return current value of point in WINDOW. | 949 doc: /* Return current value of point in WINDOW. |