comparison src/nsterm.m @ 102429:6ad9dc785e40

(ns_draw_vertical_window_border): Draw 1 pixel wide, not two, and use NSRectFill instead of NSDrawGroove.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Fri, 06 Mar 2009 15:29:50 +0000
parents 03f8a267cd56
children 762aaa3e88a0
comparison
equal deleted inserted replaced
102428:3592fbfdbc63 102429:6ad9dc785e40
2452 External (RIF): Draw a vertical line. 2452 External (RIF): Draw a vertical line.
2453 -------------------------------------------------------------------------- */ 2453 -------------------------------------------------------------------------- */
2454 { 2454 {
2455 struct frame *f = XFRAME (WINDOW_FRAME (w)); 2455 struct frame *f = XFRAME (WINDOW_FRAME (w));
2456 struct face *face; 2456 struct face *face;
2457 NSRect r = NSMakeRect (x, y0, 2, y1-y0); 2457 NSRect r = NSMakeRect (x, y0, 1, y1-y0);
2458 2458
2459 NSTRACE (ns_draw_vertical_window_border); 2459 NSTRACE (ns_draw_vertical_window_border);
2460 2460
2461 face = FACE_FROM_ID (f, VERTICAL_BORDER_FACE_ID); 2461 face = FACE_FROM_ID (f, VERTICAL_BORDER_FACE_ID);
2462 if (face) 2462 if (face)
2463 [ns_lookup_indexed_color(face->foreground, f) set]; 2463 [ns_lookup_indexed_color(face->foreground, f) set];
2464 2464
2465 ns_focus (f, &r, 1); 2465 ns_focus (f, &r, 1);
2466 NSDrawGroove (r, r); 2466 NSRectFill(r);
2467 ns_unfocus (f); 2467 ns_unfocus (f);
2468 } 2468 }
2469 2469
2470 2470
2471 void 2471 void