aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-31 20:36:31 +0000
committerKim F. Storm2003-03-31 20:36:31 +0000
commitf8240bf81d2bf545e42d8a8b89fdbe8fdbe27107 (patch)
tree836eec0fce5a1dd45555fc87ac7942675cb37dcb /src
parent7c0d3ed81fad98f402c73530334c589976ab8dd1 (diff)
downloademacs-f8240bf81d2bf545e42d8a8b89fdbe8fdbe27107.tar.gz
emacs-f8240bf81d2bf545e42d8a8b89fdbe8fdbe27107.zip
Remove unnecessary extern declarations.
(x_fullscreen_adjust): Remove. Use generic instead. (x_redisplay_interface): Add x_frame_parm_handlers member.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c51
1 files changed, 3 insertions, 48 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 480239c2a1a..fc68c7b57d8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -297,7 +297,6 @@ static Lisp_Object Qvendor_specific_keysyms;
297static Lisp_Object Qlatin_1, Qutf_8; 297static Lisp_Object Qlatin_1, Qutf_8;
298 298
299extern XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); 299extern XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *));
300extern Lisp_Object x_icon_type P_ ((struct frame *));
301 300
302 301
303static int x_alloc_nearest_color_1 P_ ((Display *, Colormap, XColor *)); 302static int x_alloc_nearest_color_1 P_ ((Display *, Colormap, XColor *));
@@ -8391,53 +8390,6 @@ x_check_fullscreen_move (f)
8391} 8390}
8392 8391
8393 8392
8394/* Calculate fullscreen size. Return in *TOP_POS and *LEFT_POS the
8395 wanted positions of the WM window (not emacs window).
8396 Return in *WIDTH and *HEIGHT the wanted width and height of Emacs
8397 window (FRAME_X_WINDOW).
8398 */
8399void
8400x_fullscreen_adjust (f, width, height, top_pos, left_pos)
8401 struct frame *f;
8402 int *width;
8403 int *height;
8404 int *top_pos;
8405 int *left_pos;
8406{
8407 int newwidth = f->width, newheight = f->height;
8408
8409 *top_pos = f->output_data.x->top_pos;
8410 *left_pos = f->output_data.x->left_pos;
8411
8412 if (f->output_data.x->want_fullscreen & FULLSCREEN_HEIGHT)
8413 {
8414 int ph;
8415
8416 ph = FRAME_X_DISPLAY_INFO (f)->height;
8417 newheight = PIXEL_TO_CHAR_HEIGHT (f, ph);
8418 ph = CHAR_TO_PIXEL_HEIGHT (f, newheight)
8419 - f->output_data.x->y_pixels_diff;
8420 newheight = PIXEL_TO_CHAR_HEIGHT (f, ph);
8421 *top_pos = 0;
8422 }
8423
8424 if (f->output_data.x->want_fullscreen & FULLSCREEN_WIDTH)
8425 {
8426 int pw;
8427
8428 pw = FRAME_X_DISPLAY_INFO (f)->width;
8429 newwidth = PIXEL_TO_CHAR_WIDTH (f, pw);
8430 pw = CHAR_TO_PIXEL_WIDTH (f, newwidth)
8431 - f->output_data.x->x_pixels_diff;
8432 newwidth = PIXEL_TO_CHAR_WIDTH (f, pw);
8433 *left_pos = 0;
8434 }
8435
8436 *width = newwidth;
8437 *height = newheight;
8438}
8439
8440
8441/* Change the size of frame F's X window to COLS/ROWS in the case F 8393/* Change the size of frame F's X window to COLS/ROWS in the case F
8442 doesn't have a widget. If CHANGE_GRAVITY is 1, we change to 8394 doesn't have a widget. If CHANGE_GRAVITY is 1, we change to
8443 top-left-corner window gravity for this size change and subsequent 8395 top-left-corner window gravity for this size change and subsequent
@@ -10679,8 +10631,11 @@ x_process_timeouts (timer)
10679 10631
10680/* Set up use of X before we make the first connection. */ 10632/* Set up use of X before we make the first connection. */
10681 10633
10634extern frame_parm_handler x_frame_parm_handlers[];
10635
10682static struct redisplay_interface x_redisplay_interface = 10636static struct redisplay_interface x_redisplay_interface =
10683{ 10637{
10638 x_frame_parm_handlers,
10684 x_produce_glyphs, 10639 x_produce_glyphs,
10685 x_write_glyphs, 10640 x_write_glyphs,
10686 x_insert_glyphs, 10641 x_insert_glyphs,