* nsterm.m (ns_ring_bell): Convert rect to window coordinates
before caching.
This commit is contained in:
parent
cf06418438
commit
f097e22350
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
|
||||
|
||||
* nsterm.m (ns_ring_bell): Convert rect to window coordinates
|
||||
before caching.
|
||||
|
||||
2009-02-24 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* fontset.c (fontset_find_font): Fix the condition for checking
|
||||
|
|
|
@ -844,11 +844,9 @@ Free a pool and temporary objects it refers to (callable from C)
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue