mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-16 19:00:55 -08:00
Made the new OS X visible bell more visible.
* src/nsterm.m: (EmacsBell:init:) Scaled up the visible bell "caution" image five times, as the image in its original size was hard to see.
This commit is contained in:
parent
dc42d0ca0b
commit
bbe8a899ac
1 changed files with 4 additions and 1 deletions
|
|
@ -1197,13 +1197,16 @@ ns_clip_to_row (struct window *w, struct glyph_row *row,
|
||||||
// 2011, see https://savannah.gnu.org/bugs/?33396
|
// 2011, see https://savannah.gnu.org/bugs/?33396
|
||||||
//
|
//
|
||||||
// As a drop in replacement, a semitransparent gray square is used.
|
// As a drop in replacement, a semitransparent gray square is used.
|
||||||
self.image = [[NSImage alloc] initWithSize:NSMakeSize(32, 32)];
|
self.image = [[NSImage alloc] initWithSize:NSMakeSize(32 * 5, 32 * 5)];
|
||||||
[self.image lockFocus];
|
[self.image lockFocus];
|
||||||
[[NSColor colorForEmacsRed:0.5 green:0.5 blue:0.5 alpha:0.5] set];
|
[[NSColor colorForEmacsRed:0.5 green:0.5 blue:0.5 alpha:0.5] set];
|
||||||
NSRectFill(NSMakeRect(0, 0, 32, 32));
|
NSRectFill(NSMakeRect(0, 0, 32, 32));
|
||||||
[self.image unlockFocus];
|
[self.image unlockFocus];
|
||||||
#else
|
#else
|
||||||
self.image = [NSImage imageNamed:NSImageNameCaution];
|
self.image = [NSImage imageNamed:NSImageNameCaution];
|
||||||
|
[self.image setScalesWhenResized:YES];
|
||||||
|
[self.image setSize:NSMakeSize(self.image.size.width * 5,
|
||||||
|
self.image.size.height * 5)];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue