]> code.delx.au - gnu-emacs/commitdiff
Made the new OS X visible bell more visible.
authorAnders Lindgren <andlind@gmail.com>
Mon, 29 Feb 2016 20:54:15 +0000 (21:54 +0100)
committerAnders Lindgren <andlind@gmail.com>
Mon, 29 Feb 2016 20:54:15 +0000 (21:54 +0100)
* 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.

src/nsterm.m

index 43d1377f8a717cf6b9be8661fb2acb5d4cbb693a..185753d8f2b77cfce5a1c334548773b9ec73be43 100644 (file)
@@ -1197,13 +1197,16 @@ ns_clip_to_row (struct window *w, struct glyph_row *row,
       // 2011, see https://savannah.gnu.org/bugs/?33396
       //
       // 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];
       [[NSColor colorForEmacsRed:0.5 green:0.5 blue:0.5 alpha:0.5] set];
       NSRectFill(NSMakeRect(0, 0, 32, 32));
       [self.image unlockFocus];
 #else
       self.image = [NSImage imageNamed:NSImageNameCaution];
+      [self.image setScalesWhenResized:YES];
+      [self.image setSize:NSMakeSize(self.image.size.width * 5,
+                                     self.image.size.height * 5)];
 #endif
     }
   return self;