]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up merge conflict.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 1 Nov 2014 20:06:49 +0000 (21:06 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 1 Nov 2014 20:06:49 +0000 (21:06 +0100)
* macfont.m (macfont_draw):
* nsterm.m (ns_mouse_position, judge): Clean up merge conflict.

src/ChangeLog
src/macfont.m
src/nsterm.m

index 4fb50118444d564f61b593886493ec21d32aacfb..e79bcb7080aec014135ed07a53b47ae29da1bdb4 100644 (file)
@@ -1,5 +1,8 @@
 2014-11-01  Jan Djärv  <jan.h.d@swipnet.se>
 
+       * macfont.m (macfont_draw):
+       * nsterm.m (ns_mouse_position, judge): Clean up merge conflict.
+
        * macfont.m (macfont_glyph_extents): Turn off synthetic bold
        if force_integral_p (i.e. no antialias).
        (macfont_draw): Check ns_antialias_text, also turn off synthetic
index c29ecc03f236977b76958bb511ecf27c193c3cb3..705483905837cef249c2e0b1c734a8c92bb7db7f 100644 (file)
@@ -2756,7 +2756,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y,
         atfm = synthetic_italic_atfm;
       else
         atfm = CGAffineTransformIdentity;
-      if (macfont_info->synthetic_bold_p && ! no_antialias_p))
+      if (macfont_info->synthetic_bold_p && ! no_antialias_p)
         {
           CGContextSetTextDrawingMode (context, kCGTextFillStroke);
           CGContextSetLineWidth (context, synthetic_bold_factor * font_size);
index c814e63f12ed2e90eaa3e73715d91cad196a0a3c..23a5918fac86b6c09889ae8fba78b1e9e2c1cf19 100644 (file)
@@ -1916,48 +1916,13 @@ ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window,
 /*fprintf (stderr, "ns_mouse_position: %.0f, %.0f\n", position.x, position.y); */
 
       if (bar_window) *bar_window = Qnil;
-      if (part) *part = 0; /*scroll_bar_handle; */
+      if (part) *part = scroll_bar_above_handle;
 
       if (x) XSETINT (*x, lrint (position.x));
       if (y) XSETINT (*y, lrint (position.y));
       if (time)
         *time = dpyinfo->last_mouse_movement_time;
-      dpyinfo->last_mouse_scroll_bar = nil;
-    }
-  else
-    {
-      /* Clear the mouse-moved flag for every frame on this display.  */
-      FOR_EACH_FRAME (tail, frame)
-        if (FRAME_NS_P (XFRAME (frame))
-            && FRAME_NS_DISPLAY (XFRAME (frame)) == FRAME_NS_DISPLAY (*fp))
-          XFRAME (frame)->mouse_moved = 0;
-
-      dpyinfo->last_mouse_scroll_bar = nil;
-      if (dpyinfo->last_mouse_frame
-         && FRAME_LIVE_P (dpyinfo->last_mouse_frame))
-        f = dpyinfo->last_mouse_frame;
-      else
-        f = dpyinfo->x_focus_frame ? dpyinfo->x_focus_frame
-                                    : SELECTED_FRAME ();
-
-      if (f && FRAME_NS_P (f))
-        {
-          view = FRAME_NS_VIEW (*fp);
-
-          position = [[view window] mouseLocationOutsideOfEventStream];
-          position = [view convertPoint: position fromView: nil];
-          remember_mouse_glyph (f, position.x, position.y,
-                               &dpyinfo->last_mouse_glyph);
-
-          if (bar_window) *bar_window = Qnil;
-          if (part) *part = scroll_bar_above_handle;
-
-          if (x) XSETINT (*x, lrint (position.x));
-          if (y) XSETINT (*y, lrint (position.y));
-          if (time)
-           *time = dpyinfo->last_mouse_movement_time;
-          *fp = f;
-        }
+      *fp = f;
     }
 
   unblock_input ();
@@ -7254,9 +7219,6 @@ if (cols > 0 && rows > 0)
       view = (EmacsView *)FRAME_NS_VIEW (frame);
       if (view != nil)
         view->scrollbarsNeedingUpdate++;
-      if (!NILP (win))
-        wset_vertical_scroll_bar (XWINDOW (win), Qnil);
-      win = Qnil;
       [self removeFromSuperview];
       [self release];
       unblock_input ();