aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-21 13:51:25 +0000
committerKim F. Storm2003-03-21 13:51:25 +0000
commit7d63e5e3e9a72dad6dfa9e8c04f2818ed374e1d2 (patch)
treea3fb5584465aec48998bd485e202b23d64730bbc /src
parentd9191744d0a7c970924eb191fb856b949d269b5b (diff)
downloademacs-7d63e5e3e9a72dad6dfa9e8c04f2818ed374e1d2.tar.gz
emacs-7d63e5e3e9a72dad6dfa9e8c04f2818ed374e1d2.zip
Remove setup of cross_cursor (already has hand_cursor).
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index ad32e5a1915..3c63d83d4a9 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -2120,7 +2120,7 @@ x_set_mouse_color (f, arg, oldval)
2120 struct frame *f; 2120 struct frame *f;
2121 Lisp_Object arg, oldval; 2121 Lisp_Object arg, oldval;
2122{ 2122{
2123 Cursor cursor, nontext_cursor, mode_cursor, cross_cursor; 2123 Cursor cursor, nontext_cursor, mode_cursor, hand_cursor;
2124 int count; 2124 int count;
2125 int mask_color; 2125 int mask_color;
2126 2126
@@ -2183,12 +2183,12 @@ x_set_mouse_color (f, arg, oldval)
2183 if (!EQ (Qnil, Vx_sensitive_text_pointer_shape)) 2183 if (!EQ (Qnil, Vx_sensitive_text_pointer_shape))
2184 { 2184 {
2185 CHECK_NUMBER (Vx_sensitive_text_pointer_shape); 2185 CHECK_NUMBER (Vx_sensitive_text_pointer_shape);
2186 cross_cursor 2186 hand_cursor
2187 = XCreateFontCursor (FRAME_W32_DISPLAY (f), 2187 = XCreateFontCursor (FRAME_W32_DISPLAY (f),
2188 XINT (Vx_sensitive_text_pointer_shape)); 2188 XINT (Vx_sensitive_text_pointer_shape));
2189 } 2189 }
2190 else 2190 else
2191 cross_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), XC_crosshair); 2191 hand_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), XC_crosshair);
2192 2192
2193 if (!NILP (Vx_window_horizontal_drag_shape)) 2193 if (!NILP (Vx_window_horizontal_drag_shape))
2194 { 2194 {
@@ -2200,7 +2200,6 @@ x_set_mouse_color (f, arg, oldval)
2200 else 2200 else
2201 horizontal_drag_cursor 2201 horizontal_drag_cursor
2202 = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_sb_h_double_arrow); 2202 = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_sb_h_double_arrow);
2203 /* TODO: hand_cursor */
2204 2203
2205 /* Check and report errors with the above calls. */ 2204 /* Check and report errors with the above calls. */
2206 x_check_errors (FRAME_W32_DISPLAY (f), "can't set cursor shape: %s"); 2205 x_check_errors (FRAME_W32_DISPLAY (f), "can't set cursor shape: %s");
@@ -2225,11 +2224,10 @@ x_set_mouse_color (f, arg, oldval)
2225 &fore_color, &back_color); 2224 &fore_color, &back_color);
2226 XRecolorCursor (FRAME_W32_DISPLAY (f), mode_cursor, 2225 XRecolorCursor (FRAME_W32_DISPLAY (f), mode_cursor,
2227 &fore_color, &back_color); 2226 &fore_color, &back_color);
2228 XRecolorCursor (FRAME_W32_DISPLAY (f), cross_cursor, 2227 XRecolorCursor (FRAME_W32_DISPLAY (f), hand_cursor,
2229 &fore_color, &back_color); 2228 &fore_color, &back_color);
2230 XRecolorCursor (FRAME_W32_DISPLAY (f), hourglass_cursor, 2229 XRecolorCursor (FRAME_W32_DISPLAY (f), hourglass_cursor,
2231 &fore_color, &back_color); 2230 &fore_color, &back_color);
2232 /* TODO: hand_cursor */
2233 } 2231 }
2234 2232
2235 if (FRAME_W32_WINDOW (f) != 0) 2233 if (FRAME_W32_WINDOW (f) != 0)
@@ -2254,11 +2252,10 @@ x_set_mouse_color (f, arg, oldval)
2254 XFreeCursor (FRAME_W32_DISPLAY (f), f->output_data.w32->modeline_cursor); 2252 XFreeCursor (FRAME_W32_DISPLAY (f), f->output_data.w32->modeline_cursor);
2255 f->output_data.w32->modeline_cursor = mode_cursor; 2253 f->output_data.w32->modeline_cursor = mode_cursor;
2256 2254
2257 if (cross_cursor != f->output_data.w32->cross_cursor 2255 if (hand_cursor != f->output_data.w32->hand_cursor
2258 && f->output_data.w32->cross_cursor != 0) 2256 && f->output_data.w32->hand_cursor != 0)
2259 XFreeCursor (FRAME_W32_DISPLAY (f), f->output_data.w32->cross_cursor); 2257 XFreeCursor (FRAME_W32_DISPLAY (f), f->output_data.w32->hand_cursor);
2260 f->output_data.w32->cross_cursor = cross_cursor; 2258 f->output_data.w32->hand_cursor = hand_cursor;
2261 /* TODO: hand_cursor */
2262 2259
2263 XFlush (FRAME_W32_DISPLAY (f)); 2260 XFlush (FRAME_W32_DISPLAY (f));
2264 UNBLOCK_INPUT; 2261 UNBLOCK_INPUT;
@@ -2268,8 +2265,6 @@ x_set_mouse_color (f, arg, oldval)
2268} 2265}
2269 2266
2270/* Defined in w32term.c. */ 2267/* Defined in w32term.c. */
2271void x_update_cursor (struct frame *f, int on_p);
2272
2273void 2268void
2274x_set_cursor_color (f, arg, oldval) 2269x_set_cursor_color (f, arg, oldval)
2275 struct frame *f; 2270 struct frame *f;
@@ -5692,10 +5687,9 @@ This function is an internal primitive--use `make-frame' instead. */)
5692 f->output_data.w32->text_cursor = w32_load_cursor (IDC_IBEAM); 5687 f->output_data.w32->text_cursor = w32_load_cursor (IDC_IBEAM);
5693 f->output_data.w32->nontext_cursor = w32_load_cursor (IDC_ARROW); 5688 f->output_data.w32->nontext_cursor = w32_load_cursor (IDC_ARROW);
5694 f->output_data.w32->modeline_cursor = w32_load_cursor (IDC_ARROW); 5689 f->output_data.w32->modeline_cursor = w32_load_cursor (IDC_ARROW);
5695 f->output_data.w32->cross_cursor = w32_load_cursor (IDC_CROSS); 5690 f->output_data.w32->hand_cursor = w32_load_cursor (IDC_HAND);
5696 f->output_data.w32->hourglass_cursor = w32_load_cursor (IDC_WAIT); 5691 f->output_data.w32->hourglass_cursor = w32_load_cursor (IDC_WAIT);
5697 f->output_data.w32->horizontal_drag_cursor = w32_load_cursor (IDC_SIZEWE); 5692 f->output_data.w32->horizontal_drag_cursor = w32_load_cursor (IDC_SIZEWE);
5698 f->output_data.w32->hand_cursor = w32_load_cursor (IDC_HAND);
5699 5693
5700 /* Add the tool-bar height to the initial frame height so that the 5694 /* Add the tool-bar height to the initial frame height so that the
5701 user gets a text display area of the size he specified with -g or 5695 user gets a text display area of the size he specified with -g or