Commit 16130a58 authored by Jan Djärv's avatar Jan Djärv

* nsterm.m (ns_update_begin): Set clip path to whole view by using

NSBezierPath.

Fixes: debbugs:12131
parent 04e082b0
2012-09-10 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (ns_update_begin): Set clip path to whole view by using
NSBezierPath (Bug#12131).
2012-09-10 Chong Yidong <cyd@gnu.org>
* fns.c (Fdelq, Fdelete): Doc fix.
......
......@@ -627,6 +627,8 @@ Free a pool and temporary objects it refers to (callable from C)
-------------------------------------------------------------------------- */
{
NSView *view = FRAME_NS_VIEW (f);
NSRect r = [view frame];
NSBezierPath *bp = [NSBezierPath bezierPath];
NSTRACE (ns_update_begin);
ns_update_auto_hide_menu_bar ();
......@@ -634,6 +636,13 @@ Free a pool and temporary objects it refers to (callable from C)
ns_updating_frame = f;
[view lockFocus];
/* drawRect may have been called for say the minibuffer, and then clip path
is for the minibuffer. But the display engine may draw more because
we have set the frame as garbaged. So reset clip path to the whole
view. */
[bp appendBezierPathWithRect: r];
[bp setClip];
#ifdef NS_IMPL_GNUSTEP
uRect = NSMakeRect (0, 0, 0, 0);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment