comparison src/macfns.c @ 47942:080b4586492b

Fix typo in comment.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 18 Oct 2002 10:09:43 +0000
parents 755c4233cfba
children af143d9ed38e
comparison
equal deleted inserted replaced
47941:df5fb1f2c113 47942:080b4586492b
324 if (! FRAME_MAC_P (f)) 324 if (! FRAME_MAC_P (f))
325 error ("non-mac frame used"); 325 error ("non-mac frame used");
326 return f; 326 return f;
327 } 327 }
328 328
329 /* Let the user specify an display with a frame. 329 /* Let the user specify a display with a frame.
330 nil stands for the selected frame--or, if that is not a mac frame, 330 nil stands for the selected frame--or, if that is not a mac frame,
331 the first display on the list. */ 331 the first display on the list. */
332 332
333 static struct mac_display_info * 333 static struct mac_display_info *
334 check_x_display_info (frame) 334 check_x_display_info (frame)
361 error ("non-mac frame used"); 361 error ("non-mac frame used");
362 return FRAME_MAC_DISPLAY_INFO (f); 362 return FRAME_MAC_DISPLAY_INFO (f);
363 } 363 }
364 } 364 }
365 365
366 /* Return the Emacs frame-object corresponding to an mac window. 366 /* Return the Emacs frame-object corresponding to a mac window.
367 It could be the frame's main window or an icon window. */ 367 It could be the frame's main window or an icon window. */
368 368
369 /* This function can be called during GC, so use GC_xxx type test macros. */ 369 /* This function can be called during GC, so use GC_xxx type test macros. */
370 370
371 struct frame * 371 struct frame *
1967 if (errno == ERANGE) 1967 if (errno == ERANGE)
1968 break; 1968 break;
1969 if (value < 0.0 || value > 1.0) 1969 if (value < 0.0 || value > 1.0)
1970 break; 1970 break;
1971 val = (unsigned long)(0x100 * value); 1971 val = (unsigned long)(0x100 * value);
1972 /* We used 0x100 instead of 0xFF to give an continuous 1972 /* We used 0x100 instead of 0xFF to give a continuous
1973 range between 0.0 and 1.0 inclusive. The next statement 1973 range between 0.0 and 1.0 inclusive. The next statement
1974 fixes the 1.0 case. */ 1974 fixes the 1.0 case. */
1975 if (val == 0x100) 1975 if (val == 0x100)
1976 val = 0xFF; 1976 val = 0xFF;
1977 colorval |= (val << pos); 1977 colorval |= (val << pos);
2353 update_face_from_frame_parameter (f, Qcursor_color, arg); 2353 update_face_from_frame_parameter (f, Qcursor_color, arg);
2354 } 2354 }
2355 2355
2356 /* Set the border-color of frame F to pixel value PIX. 2356 /* Set the border-color of frame F to pixel value PIX.
2357 Note that this does not fully take effect if done before 2357 Note that this does not fully take effect if done before
2358 F has an window. */ 2358 F has a window. */
2359 void 2359 void
2360 x_set_border_pixel (f, pix) 2360 x_set_border_pixel (f, pix)
2361 struct frame *f; 2361 struct frame *f;
2362 int pix; 2362 int pix;
2363 { 2363 {
3009 change_frame_size (f, 0, FRAME_WIDTH (f), 0, 0, 0); 3009 change_frame_size (f, 0, FRAME_WIDTH (f), 0, 0, 0);
3010 XWINDOW (FRAME_SELECTED_WINDOW (f))->cursor.hpos = 0; 3010 XWINDOW (FRAME_SELECTED_WINDOW (f))->cursor.hpos = 0;
3011 XWINDOW (FRAME_SELECTED_WINDOW (f))->cursor.x = 0; 3011 XWINDOW (FRAME_SELECTED_WINDOW (f))->cursor.x = 0;
3012 } 3012 }
3013 3013
3014 /* Subroutines of creating an frame. */ 3014 /* Subroutines of creating a frame. */
3015 3015
3016 /* Make sure that Vx_resource_name is set to a reasonable value. 3016 /* Make sure that Vx_resource_name is set to a reasonable value.
3017 Fix it up, or set it to `emacs' if it is too hopeless. */ 3017 Fix it up, or set it to `emacs' if it is too hopeless. */
3018 3018
3019 static void 3019 static void
9469 width = f->width; 9469 width = f->width;
9470 height = f->height; 9470 height = f->height;
9471 f->height = 0; 9471 f->height = 0;
9472 SET_FRAME_WIDTH (f, 0); 9472 SET_FRAME_WIDTH (f, 0);
9473 change_frame_size (f, height, width, 1, 0, 0); 9473 change_frame_size (f, height, width, 1, 0, 0);
9474 9474
9475 /* Add `tooltip' frame parameter's default value. */ 9475 /* Add `tooltip' frame parameter's default value. */
9476 if (NILP (Fframe_parameter (frame, intern ("tooltip")))) 9476 if (NILP (Fframe_parameter (frame, intern ("tooltip"))))
9477 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt), 9477 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt),
9478 Qnil)); 9478 Qnil));
9479 9479