diff options
| author | Jan Djärv | 2014-11-01 21:06:49 +0100 |
|---|---|---|
| committer | Jan Djärv | 2014-11-01 21:06:49 +0100 |
| commit | bf7ded963c672f858c3b4c14d2cd8278b0d781c4 (patch) | |
| tree | eed47f19f62d898a3a3a58029b8e9f3082c5e7d9 /src | |
| parent | d5d8ca30e5f481a32414c42bcc3b5a042061ff07 (diff) | |
| download | emacs-bf7ded963c672f858c3b4c14d2cd8278b0d781c4.tar.gz emacs-bf7ded963c672f858c3b4c14d2cd8278b0d781c4.zip | |
Clean up merge conflict.
* macfont.m (macfont_draw):
* nsterm.m (ns_mouse_position, judge): Clean up merge conflict.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/macfont.m | 2 | ||||
| -rw-r--r-- | src/nsterm.m | 42 |
3 files changed, 6 insertions, 41 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4fb50118444..e79bcb7080a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-11-01 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2014-11-01 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * macfont.m (macfont_draw): | ||
| 4 | * nsterm.m (ns_mouse_position, judge): Clean up merge conflict. | ||
| 5 | |||
| 3 | * macfont.m (macfont_glyph_extents): Turn off synthetic bold | 6 | * macfont.m (macfont_glyph_extents): Turn off synthetic bold |
| 4 | if force_integral_p (i.e. no antialias). | 7 | if force_integral_p (i.e. no antialias). |
| 5 | (macfont_draw): Check ns_antialias_text, also turn off synthetic | 8 | (macfont_draw): Check ns_antialias_text, also turn off synthetic |
diff --git a/src/macfont.m b/src/macfont.m index c29ecc03f23..70548390583 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -2756,7 +2756,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 2756 | atfm = synthetic_italic_atfm; | 2756 | atfm = synthetic_italic_atfm; |
| 2757 | else | 2757 | else |
| 2758 | atfm = CGAffineTransformIdentity; | 2758 | atfm = CGAffineTransformIdentity; |
| 2759 | if (macfont_info->synthetic_bold_p && ! no_antialias_p)) | 2759 | if (macfont_info->synthetic_bold_p && ! no_antialias_p) |
| 2760 | { | 2760 | { |
| 2761 | CGContextSetTextDrawingMode (context, kCGTextFillStroke); | 2761 | CGContextSetTextDrawingMode (context, kCGTextFillStroke); |
| 2762 | CGContextSetLineWidth (context, synthetic_bold_factor * font_size); | 2762 | CGContextSetLineWidth (context, synthetic_bold_factor * font_size); |
diff --git a/src/nsterm.m b/src/nsterm.m index c814e63f12e..23a5918fac8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1916,48 +1916,13 @@ ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, | |||
| 1916 | /*fprintf (stderr, "ns_mouse_position: %.0f, %.0f\n", position.x, position.y); */ | 1916 | /*fprintf (stderr, "ns_mouse_position: %.0f, %.0f\n", position.x, position.y); */ |
| 1917 | 1917 | ||
| 1918 | if (bar_window) *bar_window = Qnil; | 1918 | if (bar_window) *bar_window = Qnil; |
| 1919 | if (part) *part = 0; /*scroll_bar_handle; */ | 1919 | if (part) *part = scroll_bar_above_handle; |
| 1920 | 1920 | ||
| 1921 | if (x) XSETINT (*x, lrint (position.x)); | 1921 | if (x) XSETINT (*x, lrint (position.x)); |
| 1922 | if (y) XSETINT (*y, lrint (position.y)); | 1922 | if (y) XSETINT (*y, lrint (position.y)); |
| 1923 | if (time) | 1923 | if (time) |
| 1924 | *time = dpyinfo->last_mouse_movement_time; | 1924 | *time = dpyinfo->last_mouse_movement_time; |
| 1925 | dpyinfo->last_mouse_scroll_bar = nil; | 1925 | *fp = f; |
| 1926 | } | ||
| 1927 | else | ||
| 1928 | { | ||
| 1929 | /* Clear the mouse-moved flag for every frame on this display. */ | ||
| 1930 | FOR_EACH_FRAME (tail, frame) | ||
| 1931 | if (FRAME_NS_P (XFRAME (frame)) | ||
| 1932 | && FRAME_NS_DISPLAY (XFRAME (frame)) == FRAME_NS_DISPLAY (*fp)) | ||
| 1933 | XFRAME (frame)->mouse_moved = 0; | ||
| 1934 | |||
| 1935 | dpyinfo->last_mouse_scroll_bar = nil; | ||
| 1936 | if (dpyinfo->last_mouse_frame | ||
| 1937 | && FRAME_LIVE_P (dpyinfo->last_mouse_frame)) | ||
| 1938 | f = dpyinfo->last_mouse_frame; | ||
| 1939 | else | ||
| 1940 | f = dpyinfo->x_focus_frame ? dpyinfo->x_focus_frame | ||
| 1941 | : SELECTED_FRAME (); | ||
| 1942 | |||
| 1943 | if (f && FRAME_NS_P (f)) | ||
| 1944 | { | ||
| 1945 | view = FRAME_NS_VIEW (*fp); | ||
| 1946 | |||
| 1947 | position = [[view window] mouseLocationOutsideOfEventStream]; | ||
| 1948 | position = [view convertPoint: position fromView: nil]; | ||
| 1949 | remember_mouse_glyph (f, position.x, position.y, | ||
| 1950 | &dpyinfo->last_mouse_glyph); | ||
| 1951 | |||
| 1952 | if (bar_window) *bar_window = Qnil; | ||
| 1953 | if (part) *part = scroll_bar_above_handle; | ||
| 1954 | |||
| 1955 | if (x) XSETINT (*x, lrint (position.x)); | ||
| 1956 | if (y) XSETINT (*y, lrint (position.y)); | ||
| 1957 | if (time) | ||
| 1958 | *time = dpyinfo->last_mouse_movement_time; | ||
| 1959 | *fp = f; | ||
| 1960 | } | ||
| 1961 | } | 1926 | } |
| 1962 | 1927 | ||
| 1963 | unblock_input (); | 1928 | unblock_input (); |
| @@ -7254,9 +7219,6 @@ if (cols > 0 && rows > 0) | |||
| 7254 | view = (EmacsView *)FRAME_NS_VIEW (frame); | 7219 | view = (EmacsView *)FRAME_NS_VIEW (frame); |
| 7255 | if (view != nil) | 7220 | if (view != nil) |
| 7256 | view->scrollbarsNeedingUpdate++; | 7221 | view->scrollbarsNeedingUpdate++; |
| 7257 | if (!NILP (win)) | ||
| 7258 | wset_vertical_scroll_bar (XWINDOW (win), Qnil); | ||
| 7259 | win = Qnil; | ||
| 7260 | [self removeFromSuperview]; | 7222 | [self removeFromSuperview]; |
| 7261 | [self release]; | 7223 | [self release]; |
| 7262 | unblock_input (); | 7224 | unblock_input (); |