comparison src/nsterm.m @ 98516:a3386be0b080

Fix case of "GNUstep".
author Glenn Morris <rgm@gnu.org>
date Sat, 04 Oct 2008 18:54:20 +0000
parents 5db459c2e438
children 713fc3ab99e5
comparison
equal deleted inserted replaced
98515:09a4b21bd2de 98516:a3386be0b080
836 r = [view bounds]; 836 r = [view bounds];
837 r.origin.x += (r.size.width - dim.x) / 2; 837 r.origin.x += (r.size.width - dim.x) / 2;
838 r.origin.y += (r.size.height - dim.y) / 2; 838 r.origin.y += (r.size.height - dim.y) / 2;
839 r.size.width = dim.x; 839 r.size.width = dim.x;
840 r.size.height = dim.y; 840 r.size.height = dim.y;
841 /* XXX: cacheImageInRect under GNUSTEP does not account for 841 /* XXX: cacheImageInRect under GNUstep does not account for
842 offset in x_set_window_size, so overestimate (4 fine on Cocoa) */ 842 offset in x_set_window_size, so overestimate (4 fine on Cocoa) */
843 surr = NSInsetRect (r, -10, -10); 843 surr = NSInsetRect (r, -10, -10);
844 ns_focus (frame, &surr, 1); 844 ns_focus (frame, &surr, 1);
845 [[view window] cacheImageInRect: surr]; 845 [[view window] cacheImageInRect: surr];
846 [ns_lookup_indexed_color (NS_FACE_FOREGROUND 846 [ns_lookup_indexed_color (NS_FACE_FOREGROUND