Mercurial > emacs
changeset 102242:09a2c0075422
* nsterm.m (ns_ring_bell): Convert rect to window coordinates
before caching.
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Tue, 24 Feb 2009 12:42:00 +0000 |
parents | ef1ec0a2e8dd |
children | 44f82660b156 |
files | src/nsterm.m |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/nsterm.m Tue Feb 24 11:57:32 2009 +0000 +++ b/src/nsterm.m Tue Feb 24 12:42:00 2009 +0000 @@ -844,11 +844,9 @@ r.origin.y += (r.size.height - dim.y) / 2; r.size.width = dim.x; r.size.height = dim.y; - /* XXX: cacheImageInRect under GNUstep does not account for - offset in x_set_window_size, so overestimate (4 fine on Cocoa) */ - surr = NSInsetRect (r, -10, -10); + surr = NSInsetRect (r, -2, -2); ns_focus (frame, &surr, 1); - [[view window] cacheImageInRect: surr]; + [[view window] cacheImageInRect: [view convertRect: surr toView:nil]]; [ns_lookup_indexed_color (NS_FACE_FOREGROUND (FRAME_DEFAULT_FACE (frame)), frame) set]; NSRectFill (r);