comparison src/nsfont.m @ 111398:4afa0b625189

* 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>.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Thu, 04 Nov 2010 20:10:50 +0200
parents d6fc586a0872
children d291fc8615a3
comparison
equal deleted inserted replaced
111397:ee55b6620594 111398:4afa0b625189
1209 DPSmoveto (context, r.origin.x, r.origin.y); 1209 DPSmoveto (context, r.origin.x, r.origin.y);
1210 DPSxshow (context, cbuf, advances, len); 1210 DPSxshow (context, cbuf, advances, len);
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 */
1218 { 1217 {
1219 CGContextRef gcontext = 1218 CGContextRef gcontext =
1278 CGContextShowGlyphsWithAdvances (gcontext, s->char2b + s->cmp_from, 1277 CGContextShowGlyphsWithAdvances (gcontext, s->char2b + s->cmp_from,
1279 advances, len); 1278 advances, len);
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
1290 1288
1291 /* ========================================================================== 1289 /* ==========================================================================