Index: Source/NSImage.m =================================================================== RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSImage.m,v retrieving revision 1.62 diff -c -r1.62 NSImage.m *** Source/NSImage.m 17 Dec 2001 16:51:50 -0000 1.62 --- Source/NSImage.m 28 Jan 2002 21:20:49 -0000 *************** *** 289,295 **** //_flags.flipDraw = NO; if (aSize.width && aSize.height) { ! _size = aSize; _flags.sizeWasExplicitlySet = YES; } //_flags.usesEPSOnResolutionMismatch = NO; --- 289,300 ---- //_flags.flipDraw = NO; if (aSize.width && aSize.height) { ! // FIXME: rounding down is just a quick fix. ! // the non-integrality of the image should be ! // taken care of in the composite methods in ! // the backend. ! _size.width = (int) aSize.width; ! _size.height = (int) aSize.height; _flags.sizeWasExplicitlySet = YES; } //_flags.usesEPSOnResolutionMismatch = NO; *************** *** 488,494 **** --- 493,506 ---- - (void) setSize: (NSSize)aSize { + // FIXME: the rounding down is just a quick fix + // it should actually be handled in composite in + // the backend. + _size.width = (int) aSize.width; + _size.height = (int) aSize.height; _size = aSize; + _flags.sizeWasExplicitlySet = YES; // TODO: This invalidates any cached data }