Turn ImageCompositing on by default

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5798 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2000-01-19 04:59:12 +00:00
parent e705674054
commit 5eb25a415f
3 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2000-01-18 Adam Fedor <fedor@gnu.org>
* Source/NSCachedImageRep.m: Make "ImageCompositing" on by default.
* Souce/NSImageRep.m: Likewise.
Mon Jan 17 21:15:00 2000 Enrico Sersale <enrico@imago.ro>
* Source/NSBezierPath.m (-elementTypeAtIndex:associatedPoints:]):

View file

@ -41,7 +41,7 @@
#include <AppKit/NSWindow.h>
#include <AppKit/PSOperators.h>
static BOOL NSImageCompositing = NO;
static BOOL NSImageCompositing = YES;
@interface GSCacheW : NSWindow
@end
@ -75,8 +75,10 @@ static BOOL NSImageCompositing = NO;
- (void) initialize
{
NSImageCompositing = [[NSUserDefaults standardUserDefaults]
boolForKey: @"ImageCompositing"];
id obj = [[NSUserDefaults standardUserDefaults]
stringForKey: @"ImageCompositing"];
if (obj)
NSImageCompositing = [obj boolValue];
}
// Initializing an NSCachedImageRep

View file

@ -51,9 +51,11 @@ static NSMutableArray* imageReps = NULL;
them can load in data from an external source. */
if (self == [NSImageRep class])
{
id obj;
imageReps = [[NSMutableArray alloc] initWithCapacity: 2];
if ([[NSUserDefaults standardUserDefaults]
boolForKey: @"ImageCompositing"])
obj = [[NSUserDefaults standardUserDefaults]
stringForKey: @"ImageCompositing"];
if (!obj || [obj boolValue] == YES)
[imageReps addObject: [NSBitmapImageRep class]];
// [imageReps addObject: [NSEPSImageRep class]];
}