diff options
Diffstat (limited to 'src/nsimage.m')
| -rw-r--r-- | src/nsimage.m | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/nsimage.m b/src/nsimage.m index 9eaeefebcd8..e76a7db8ef3 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -35,14 +35,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 35 | #include "frame.h" | 35 | #include "frame.h" |
| 36 | #include "coding.h" | 36 | #include "coding.h" |
| 37 | 37 | ||
| 38 | /* call tracing */ | ||
| 39 | #if 0 | ||
| 40 | int image_trace_num = 0; | ||
| 41 | #define NSTRACE(x) fprintf (stderr, "%s:%d: [%d] " #x "\n", \ | ||
| 42 | __FILE__, __LINE__, ++image_trace_num) | ||
| 43 | #else | ||
| 44 | #define NSTRACE(x) | ||
| 45 | #endif | ||
| 46 | 38 | ||
| 47 | 39 | ||
| 48 | /* ========================================================================== | 40 | /* ========================================================================== |
| @@ -57,7 +49,7 @@ void * | |||
| 57 | ns_image_from_XBM (unsigned char *bits, int width, int height, | 49 | ns_image_from_XBM (unsigned char *bits, int width, int height, |
| 58 | unsigned long fg, unsigned long bg) | 50 | unsigned long fg, unsigned long bg) |
| 59 | { | 51 | { |
| 60 | NSTRACE (ns_image_from_XBM); | 52 | NSTRACE ("ns_image_from_XBM"); |
| 61 | return [[EmacsImage alloc] initFromXBM: bits | 53 | return [[EmacsImage alloc] initFromXBM: bits |
| 62 | width: width height: height | 54 | width: width height: height |
| 63 | fg: fg bg: bg]; | 55 | fg: fg bg: bg]; |
| @@ -66,7 +58,7 @@ ns_image_from_XBM (unsigned char *bits, int width, int height, | |||
| 66 | void * | 58 | void * |
| 67 | ns_image_for_XPM (int width, int height, int depth) | 59 | ns_image_for_XPM (int width, int height, int depth) |
| 68 | { | 60 | { |
| 69 | NSTRACE (ns_image_for_XPM); | 61 | NSTRACE ("ns_image_for_XPM"); |
| 70 | return [[EmacsImage alloc] initForXPMWithDepth: depth | 62 | return [[EmacsImage alloc] initForXPMWithDepth: depth |
| 71 | width: width height: height]; | 63 | width: width height: height]; |
| 72 | } | 64 | } |
| @@ -74,7 +66,7 @@ ns_image_for_XPM (int width, int height, int depth) | |||
| 74 | void * | 66 | void * |
| 75 | ns_image_from_file (Lisp_Object file) | 67 | ns_image_from_file (Lisp_Object file) |
| 76 | { | 68 | { |
| 77 | NSTRACE (ns_image_from_bitmap_file); | 69 | NSTRACE ("ns_image_from_bitmap_file"); |
| 78 | return [EmacsImage allocInitFromFile: file]; | 70 | return [EmacsImage allocInitFromFile: file]; |
| 79 | } | 71 | } |
| 80 | 72 | ||
| @@ -85,7 +77,7 @@ ns_load_image (struct frame *f, struct image *img, | |||
| 85 | EmacsImage *eImg = nil; | 77 | EmacsImage *eImg = nil; |
| 86 | NSSize size; | 78 | NSSize size; |
| 87 | 79 | ||
| 88 | NSTRACE (ns_load_image); | 80 | NSTRACE ("ns_load_image"); |
| 89 | 81 | ||
| 90 | if (STRINGP (spec_file)) | 82 | if (STRINGP (spec_file)) |
| 91 | { | 83 | { |