diff options
| author | Adrian Robert | 2010-11-04 20:10:50 +0200 |
|---|---|---|
| committer | Adrian Robert | 2010-11-04 20:10:50 +0200 |
| commit | 3fdebbf9ac5507cf112ee58613a02f73039c4e41 (patch) | |
| tree | f09b005ed34cc50ee1771c0cf069a66c97ad59f3 /src | |
| parent | eea682b6d1e8a2c518dc8402160bbccd999d64e7 (diff) | |
| download | emacs-3fdebbf9ac5507cf112ee58613a02f73039c4e41.tar.gz emacs-3fdebbf9ac5507cf112ee58613a02f73039c4e41.zip | |
* nsfont.m (nsfont_draw) * nsimage.m (EmacsImage-setXBMColor:) * nsterm.m (EmacsView-performDragOperation:): Correct empty return statements. Based on a patch by Ismail Donmez <ismail@namtrac.org>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/nsfont.m | 4 | ||||
| -rw-r--r-- | src/nsimage.m | 4 | ||||
| -rw-r--r-- | src/nsterm.m | 2 |
4 files changed, 12 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index efb2cccb3f1..8672628743e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com> | ||
| 2 | |||
| 3 | * nsfont.m (nsfont_draw) | ||
| 4 | * nsimage.m (EmacsImage-setXBMColor:) | ||
| 5 | * nsterm.m (EmacsView-performDragOperation:): Correct empty return | ||
| 6 | statements. Based on a patch by Ismail Donmez <ismail@namtrac.org>. | ||
| 7 | |||
| 1 | 2010-11-03 Julien Danjou <julien@danjou.info> | 8 | 2010-11-03 Julien Danjou <julien@danjou.info> |
| 2 | 9 | ||
| 3 | * image.c (gif_load): Add support for transparency and specified | 10 | * image.c (gif_load): Add support for transparency and specified |
diff --git a/src/nsfont.m b/src/nsfont.m index 115986774d8..63b94a1b67a 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -1211,7 +1211,6 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1211 | DPSstroke (context); | 1211 | DPSstroke (context); |
| 1212 | 1212 | ||
| 1213 | DPSgrestore (context); | 1213 | DPSgrestore (context); |
| 1214 | return to-from; | ||
| 1215 | } | 1214 | } |
| 1216 | 1215 | ||
| 1217 | #else /* NS_IMPL_COCOA */ | 1216 | #else /* NS_IMPL_COCOA */ |
| @@ -1280,10 +1279,9 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1280 | } | 1279 | } |
| 1281 | 1280 | ||
| 1282 | CGContextRestoreGState (gcontext); | 1281 | CGContextRestoreGState (gcontext); |
| 1283 | return; | ||
| 1284 | } | 1282 | } |
| 1285 | #endif /* NS_IMPL_COCOA */ | 1283 | #endif /* NS_IMPL_COCOA */ |
| 1286 | 1284 | return to-from; | |
| 1287 | } | 1285 | } |
| 1288 | 1286 | ||
| 1289 | 1287 | ||
diff --git a/src/nsimage.m b/src/nsimage.m index a42950d1f52..81198be0862 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -336,7 +336,7 @@ static EmacsImage *ImageList = nil; | |||
| 336 | NSColor *rgbColor; | 336 | NSColor *rgbColor; |
| 337 | 337 | ||
| 338 | if (bmRep == nil || color == nil) | 338 | if (bmRep == nil || color == nil) |
| 339 | return; | 339 | return self; |
| 340 | 340 | ||
| 341 | if ([color colorSpaceName] != NSCalibratedRGBColorSpace) | 341 | if ([color colorSpaceName] != NSCalibratedRGBColorSpace) |
| 342 | rgbColor = [color colorUsingColorSpaceName: NSCalibratedRGBColorSpace]; | 342 | rgbColor = [color colorUsingColorSpaceName: NSCalibratedRGBColorSpace]; |
| @@ -361,6 +361,8 @@ static EmacsImage *ImageList = nil; | |||
| 361 | planes[2][i] = bb; | 361 | planes[2][i] = bb; |
| 362 | } | 362 | } |
| 363 | } | 363 | } |
| 364 | |||
| 365 | return self; | ||
| 364 | } | 366 | } |
| 365 | 367 | ||
| 366 | 368 | ||
diff --git a/src/nsterm.m b/src/nsterm.m index f11c477d192..2fd82a0cf9b 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -5436,7 +5436,7 @@ ns_term_shutdown (int sig) | |||
| 5436 | NSTRACE (performDragOperation); | 5436 | NSTRACE (performDragOperation); |
| 5437 | 5437 | ||
| 5438 | if (!emacs_event) | 5438 | if (!emacs_event) |
| 5439 | return; | 5439 | return NO; |
| 5440 | 5440 | ||
| 5441 | position = [self convertPoint: [sender draggingLocation] fromView: nil]; | 5441 | position = [self convertPoint: [sender draggingLocation] fromView: nil]; |
| 5442 | x = lrint (position.x); y = lrint (position.y); | 5442 | x = lrint (position.x); y = lrint (position.y); |