aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan D2014-12-24 12:26:25 +0100
committerJan D2014-12-24 12:26:25 +0100
commit0d48826fd3c0836a110cd94ef7f7184272857eed (patch)
tree1ef229477dfcee9dfc66b3b57a709918db8d13a3 /src
parent5fc82109bab6f51d8be7134f1368f14c628794e9 (diff)
downloademacs-0d48826fd3c0836a110cd94ef7f7184272857eed.tar.gz
emacs-0d48826fd3c0836a110cd94ef7f7184272857eed.zip
Avoid compiler warning.
* nsimage.m (setPixmapData): Rename local variable bmRep to avoid compiler warning.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/nsimage.m8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 530b9130783..2840109ac1c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,6 +4,8 @@
4 (dealloc): Release bmRep. 4 (dealloc): Release bmRep.
5 (setPixmapData): Make bmRep local so class member is not 5 (setPixmapData): Make bmRep local so class member is not
6 set (Bug#19133). 6 set (Bug#19133).
7 (setPixmapData): Rename local variable bmRep to avoid compiler
8 warning.
7 9
82014-12-24 Jan Djärv <jan.h.d@swipnet.se> 102014-12-24 Jan Djärv <jan.h.d@swipnet.se>
9 11
diff --git a/src/nsimage.m b/src/nsimage.m
index a625f20616d..cb3d82af281 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -351,15 +351,15 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
351 { 351 {
352 if ([rep respondsToSelector: @selector (getBitmapDataPlanes:)]) 352 if ([rep respondsToSelector: @selector (getBitmapDataPlanes:)])
353 { 353 {
354 NSBitmapImageRep *bmRep = (NSBitmapImageRep *) rep; 354 NSBitmapImageRep *bmr = (NSBitmapImageRep *) rep;
355 355
356 if ([bmRep numberOfPlanes] >= 3) 356 if ([bmr numberOfPlanes] >= 3)
357 [bmRep getBitmapDataPlanes: pixmapData]; 357 [bmr getBitmapDataPlanes: pixmapData];
358 358
359 /* The next two lines cause the DPI of the image to be ignored. 359 /* The next two lines cause the DPI of the image to be ignored.
360 This seems to be the behavior users expect. */ 360 This seems to be the behavior users expect. */
361 [self setScalesWhenResized: YES]; 361 [self setScalesWhenResized: YES];
362 [self setSize: NSMakeSize([bmRep pixelsWide], [bmRep pixelsHigh])]; 362 [self setSize: NSMakeSize([bmr pixelsWide], [bmr pixelsHigh])];
363 363
364 break; 364 break;
365 } 365 }