diff options
| author | Martin Rudalics | 2014-02-05 11:46:44 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-02-05 11:46:44 +0100 |
| commit | 415e38104975bc21cae54a5913d9a88bb837c26c (patch) | |
| tree | 1332348e3c25fe345a70ed8e6d498828cf8587e9 /src | |
| parent | bfdd79d30931a2f5706a76b13624623319fb041e (diff) | |
| download | emacs-415e38104975bc21cae54a5913d9a88bb837c26c.tar.gz emacs-415e38104975bc21cae54a5913d9a88bb837c26c.zip | |
In draw_fringe_bitmap_1 don't draw fringe if it's outside the window (Bug#16649).
* fringe.c (draw_fringe_bitmap_1): Don't draw a fringe if it's
outside the window (Bug#16649).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/fringe.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index be4907bf239..487fb4092d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -5,6 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | 2014-02-05 Martin Rudalics <rudalics@gmx.at> | 6 | 2014-02-05 Martin Rudalics <rudalics@gmx.at> |
| 7 | 7 | ||
| 8 | * fringe.c (draw_fringe_bitmap_1): Don't draw a fringe if it's | ||
| 9 | outside the window (Bug#16649). | ||
| 10 | |||
| 8 | * xdisp.c (note_mouse_highlight): When entering a margin area show | 11 | * xdisp.c (note_mouse_highlight): When entering a margin area show |
| 9 | a non-text cursor (Bug#16647). | 12 | a non-text cursor (Bug#16647). |
| 10 | 13 | ||
diff --git a/src/fringe.c b/src/fringe.c index eb2faa448f7..6325de4128e 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -695,7 +695,9 @@ draw_fringe_bitmap_1 (struct window *w, struct glyph_row *row, int left_p, int o | |||
| 695 | } | 695 | } |
| 696 | } | 696 | } |
| 697 | 697 | ||
| 698 | FRAME_RIF (f)->draw_fringe_bitmap (w, row, &p); | 698 | if (p.x >= WINDOW_BOX_LEFT_EDGE_X (w) |
| 699 | && (p.x + p.wd) <= WINDOW_BOX_LEFT_EDGE_X (w) + WINDOW_PIXEL_WIDTH (w)) | ||
| 700 | FRAME_RIF (f)->draw_fringe_bitmap (w, row, &p); | ||
| 699 | } | 701 | } |
| 700 | 702 | ||
| 701 | static int | 703 | static int |