mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:50:47 +00:00
Make sure to allocate a mutable dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26055 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ac65391f51
commit
2a16e4c54c
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-02-12 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/GSFusedSilicaContext.m: Make sure to allocate a
|
||||
mutable dictionary.
|
||||
|
||||
2008-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSFont.m (-initWithName:matrix:fix:screenFont:role:): Add
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceGray
|
||||
{
|
||||
NSMutableDictionary *space;
|
||||
space = [NSDictionary dictionaryWithObject: NSDeviceWhiteColorSpace
|
||||
space = [NSMutableDictionary dictionaryWithObject: NSDeviceWhiteColorSpace
|
||||
forKey: GSColorSpaceName];
|
||||
[space setObject: NUMBER(1) forKey: GSColorSpaceComponents];
|
||||
return space;
|
||||
|
@ -53,7 +53,7 @@
|
|||
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceRGB
|
||||
{
|
||||
NSMutableDictionary *space;
|
||||
space = [NSDictionary dictionaryWithObject: NSDeviceRGBColorSpace
|
||||
space = [NSMutableDictionary dictionaryWithObject: NSDeviceRGBColorSpace
|
||||
forKey: GSColorSpaceName];
|
||||
[space setObject: NUMBER(3) forKey: GSColorSpaceComponents];
|
||||
return space;
|
||||
|
@ -62,7 +62,7 @@
|
|||
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceCMYK
|
||||
{
|
||||
NSMutableDictionary *space;
|
||||
space = [NSDictionary dictionaryWithObject: NSDeviceCMYKColorSpace
|
||||
space = [NSMutableDictionary dictionaryWithObject: NSDeviceCMYKColorSpace
|
||||
forKey: GSColorSpaceName];
|
||||
[space setObject: NUMBER(4) forKey: GSColorSpaceComponents];
|
||||
return space;
|
||||
|
@ -73,7 +73,7 @@
|
|||
: (float)gamma
|
||||
{
|
||||
NSMutableDictionary *space;
|
||||
space = [NSDictionary dictionaryWithObject: NSCalibratedWhiteColorSpace
|
||||
space = [NSMutableDictionary dictionaryWithObject: NSCalibratedWhiteColorSpace
|
||||
forKey: GSColorSpaceName];
|
||||
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
||||
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
||||
|
@ -87,7 +87,7 @@
|
|||
: (const float *)matrix
|
||||
{
|
||||
NSMutableDictionary *space;
|
||||
space = [NSDictionary dictionaryWithObject: NSCalibratedRGBColorSpace
|
||||
space = [NSMutableDictionary dictionaryWithObject: NSCalibratedRGBColorSpace
|
||||
forKey: GSColorSpaceName];
|
||||
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
||||
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
||||
|
@ -102,7 +102,7 @@
|
|||
: (const float *) range
|
||||
{
|
||||
NSMutableDictionary *space;
|
||||
space = [NSDictionary dictionaryWithObject: @"NSLabColorSpace"
|
||||
space = [NSMutableDictionary dictionaryWithObject: @"NSLabColorSpace"
|
||||
forKey: GSColorSpaceName];
|
||||
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
||||
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue