Support for images in NSCalibratedRGBColorSpace for windows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21292 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2005-06-07 19:38:54 +00:00
parent faaebcda2a
commit 025f9fc834
2 changed files with 24 additions and 16 deletions

View file

@ -1,3 +1,10 @@
2005-06-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/winlib/Win32GState.m (GSCreateBitmap): Allow
NSCalibratedRGBColorSpace as well.
(-_compositeGState:fromRect:toPoint:op:fraction:) Removed the
leading underscore of the method name.
2005-05-26 Adam Fedor <fedor@gnu.org> 2005-05-26 Adam Fedor <fedor@gnu.org>
* Update FSF Address. * Update FSF Address.

View file

@ -200,7 +200,7 @@ RECT GSXWindowRectToMS(WIN32GState *s, NSRect r)
return r1; return r1;
} }
- (void) _compositeGState: (WIN32GState *) source - (void) compositeGState: (WIN32GState *) source
fromRect: (NSRect) sourceRect fromRect: (NSRect) sourceRect
toPoint: (NSPoint) destPoint toPoint: (NSPoint) destPoint
op: (NSCompositingOperation) op op: (NSCompositingOperation) op
@ -297,7 +297,7 @@ RECT GSXWindowRectToMS(WIN32GState *s, NSRect r)
toPoint: (NSPoint)aPoint toPoint: (NSPoint)aPoint
op: (NSCompositingOperation)op op: (NSCompositingOperation)op
{ {
[self _compositeGState: (WIN32GState *) source [self compositeGState: (WIN32GState *) source
fromRect: aRect fromRect: aRect
toPoint: aPoint toPoint: aPoint
op: op op: op
@ -309,7 +309,7 @@ RECT GSXWindowRectToMS(WIN32GState *s, NSRect r)
toPoint: (NSPoint)aPoint toPoint: (NSPoint)aPoint
delta: (float)delta delta: (float)delta
{ {
[self _compositeGState: (WIN32GState *) source [self compositeGState: (WIN32GState *) source
fromRect: aRect fromRect: aRect
toPoint: aPoint toPoint: aPoint
op: NSCompositeSourceOver op: NSCompositeSourceOver
@ -382,7 +382,8 @@ HBITMAP GSCreateBitmap(HDC hDC, int pixelsWide, int pixelsHigh,
int xres, yres; int xres, yres;
UINT fuColorUse; UINT fuColorUse;
if (isPlanar || ![colorSpaceName isEqualToString: NSDeviceRGBColorSpace]) if (isPlanar || !([colorSpaceName isEqualToString: NSDeviceRGBColorSpace] ||
[colorSpaceName isEqualToString: NSCalibratedRGBColorSpace]))
{ {
NSLog(@"Bitmap type currently not supported %d %@", isPlanar, colorSpaceName); NSLog(@"Bitmap type currently not supported %d %@", isPlanar, colorSpaceName);
return NULL; return NULL;