diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/src/xfns.c b/src/xfns.c index 54594e3f200..307aa35f0b0 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -930,12 +930,6 @@ x_set_internal_border_width (f, arg, oldval) | |||
| 930 | } | 930 | } |
| 931 | } | 931 | } |
| 932 | 932 | ||
| 933 | void x_user_set_name (f, arg, oldval) | ||
| 934 | struct frame *f; | ||
| 935 | Lisp_Object arg, oldval; | ||
| 936 | { | ||
| 937 | } | ||
| 938 | |||
| 939 | /* Change the name of frame F to ARG. If ARG is nil, set F's name to | 933 | /* Change the name of frame F to ARG. If ARG is nil, set F's name to |
| 940 | x_id_name. | 934 | x_id_name. |
| 941 | 935 | ||
| @@ -2288,18 +2282,6 @@ x_rubber_band (f, x, y, width, height, geo, str, hscroll, vscroll) | |||
| 2288 | } | 2282 | } |
| 2289 | #endif /* not HAVE_X11 */ | 2283 | #endif /* not HAVE_X11 */ |
| 2290 | 2284 | ||
| 2291 | x_pixel_width (f) | ||
| 2292 | register struct frame *f; | ||
| 2293 | { | ||
| 2294 | return PIXEL_WIDTH (f); | ||
| 2295 | } | ||
| 2296 | |||
| 2297 | x_pixel_height (f) | ||
| 2298 | register struct frame *f; | ||
| 2299 | { | ||
| 2300 | return PIXEL_HEIGHT (f); | ||
| 2301 | } | ||
| 2302 | |||
| 2303 | DEFUN ("x-defined-color", Fx_defined_color, Sx_defined_color, 1, 1, 0, | 2285 | DEFUN ("x-defined-color", Fx_defined_color, Sx_defined_color, 1, 1, 0, |
| 2304 | "Return t if the current X display supports the color named COLOR.") | 2286 | "Return t if the current X display supports the color named COLOR.") |
| 2305 | (color) | 2287 | (color) |
| @@ -2335,22 +2317,28 @@ DEFUN ("x-color-display-p", Fx_color_display_p, Sx_color_display_p, 0, 0, 0, | |||
| 2335 | } | 2317 | } |
| 2336 | } | 2318 | } |
| 2337 | 2319 | ||
| 2338 | DEFUN ("x-pixel-width", Fx_pixel_width, Sx_pixel_width, 1, 1, 0, | 2320 | x_pixel_width (f) |
| 2339 | "Return the width in pixels of FRAME.") | 2321 | register struct frame *f; |
| 2340 | (frame) | ||
| 2341 | Lisp_Object frame; | ||
| 2342 | { | 2322 | { |
| 2343 | CHECK_LIVE_FRAME (frame, 0); | 2323 | return PIXEL_WIDTH (f); |
| 2344 | return make_number (XFRAME (frame)->display.x->pixel_width); | ||
| 2345 | } | 2324 | } |
| 2346 | 2325 | ||
| 2347 | DEFUN ("x-pixel-height", Fx_pixel_height, Sx_pixel_height, 1, 1, 0, | 2326 | x_pixel_height (f) |
| 2348 | "Return the height in pixels of FRAME.") | 2327 | register struct frame *f; |
| 2349 | (frame) | ||
| 2350 | Lisp_Object frame; | ||
| 2351 | { | 2328 | { |
| 2352 | CHECK_LIVE_FRAME (frame, 0); | 2329 | return PIXEL_HEIGHT (f); |
| 2353 | return make_number (XFRAME (frame)->display.x->pixel_height); | 2330 | } |
| 2331 | |||
| 2332 | x_char_width (f) | ||
| 2333 | register struct frame *f; | ||
| 2334 | { | ||
| 2335 | return FONT_WIDTH (f->display.x->font); | ||
| 2336 | } | ||
| 2337 | |||
| 2338 | x_char_height (f) | ||
| 2339 | register struct frame *f; | ||
| 2340 | { | ||
| 2341 | return FONT_HEIGHT (f->display.x->font); | ||
| 2354 | } | 2342 | } |
| 2355 | 2343 | ||
| 2356 | #if 0 /* These no longer seem like the right way to do things. */ | 2344 | #if 0 /* These no longer seem like the right way to do things. */ |
| @@ -3890,8 +3878,6 @@ Values can be the symbols Always, WhenMapped, or NotUseful."); | |||
| 3890 | 3878 | ||
| 3891 | #ifdef HAVE_X11 | 3879 | #ifdef HAVE_X11 |
| 3892 | defsubr (&Sx_get_resource); | 3880 | defsubr (&Sx_get_resource); |
| 3893 | defsubr (&Sx_pixel_width); | ||
| 3894 | defsubr (&Sx_pixel_height); | ||
| 3895 | #if 0 | 3881 | #if 0 |
| 3896 | defsubr (&Sx_draw_rectangle); | 3882 | defsubr (&Sx_draw_rectangle); |
| 3897 | defsubr (&Sx_erase_rectangle); | 3883 | defsubr (&Sx_erase_rectangle); |