More imaging and compositing stuff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5635 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1999-12-28 19:20:45 +00:00
parent 0d72b6f34d
commit 745d515d38
12 changed files with 142 additions and 21 deletions

View file

@ -109,10 +109,17 @@ static NSScreen *mainScreen = nil;
else
device_desc = [[NSMutableDictionary dictionary] retain];
if (ctxt == nil)
{
NSLog(@"Internal error: No current context\n");
[self release];
return nil;
}
if ([ctxt isDrawingToScreen] == NO)
{
NSLog(@"Internal error: trying to find screen with wrong context\n");
[self dealloc];
[self release];
return nil;
}