mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 13:11:55 +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>
|
2008-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSFont.m (-initWithName:matrix:fix:screenFont:role:): Add
|
* Source/NSFont.m (-initWithName:matrix:fix:screenFont:role:): Add
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceGray
|
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceGray
|
||||||
{
|
{
|
||||||
NSMutableDictionary *space;
|
NSMutableDictionary *space;
|
||||||
space = [NSDictionary dictionaryWithObject: NSDeviceWhiteColorSpace
|
space = [NSMutableDictionary dictionaryWithObject: NSDeviceWhiteColorSpace
|
||||||
forKey: GSColorSpaceName];
|
forKey: GSColorSpaceName];
|
||||||
[space setObject: NUMBER(1) forKey: GSColorSpaceComponents];
|
[space setObject: NUMBER(1) forKey: GSColorSpaceComponents];
|
||||||
return space;
|
return space;
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceRGB
|
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceRGB
|
||||||
{
|
{
|
||||||
NSMutableDictionary *space;
|
NSMutableDictionary *space;
|
||||||
space = [NSDictionary dictionaryWithObject: NSDeviceRGBColorSpace
|
space = [NSMutableDictionary dictionaryWithObject: NSDeviceRGBColorSpace
|
||||||
forKey: GSColorSpaceName];
|
forKey: GSColorSpaceName];
|
||||||
[space setObject: NUMBER(3) forKey: GSColorSpaceComponents];
|
[space setObject: NUMBER(3) forKey: GSColorSpaceComponents];
|
||||||
return space;
|
return space;
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceCMYK
|
+ (CGColorSpaceRef) CGColorSpaceCreateDeviceCMYK
|
||||||
{
|
{
|
||||||
NSMutableDictionary *space;
|
NSMutableDictionary *space;
|
||||||
space = [NSDictionary dictionaryWithObject: NSDeviceCMYKColorSpace
|
space = [NSMutableDictionary dictionaryWithObject: NSDeviceCMYKColorSpace
|
||||||
forKey: GSColorSpaceName];
|
forKey: GSColorSpaceName];
|
||||||
[space setObject: NUMBER(4) forKey: GSColorSpaceComponents];
|
[space setObject: NUMBER(4) forKey: GSColorSpaceComponents];
|
||||||
return space;
|
return space;
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
: (float)gamma
|
: (float)gamma
|
||||||
{
|
{
|
||||||
NSMutableDictionary *space;
|
NSMutableDictionary *space;
|
||||||
space = [NSDictionary dictionaryWithObject: NSCalibratedWhiteColorSpace
|
space = [NSMutableDictionary dictionaryWithObject: NSCalibratedWhiteColorSpace
|
||||||
forKey: GSColorSpaceName];
|
forKey: GSColorSpaceName];
|
||||||
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
||||||
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
: (const float *)matrix
|
: (const float *)matrix
|
||||||
{
|
{
|
||||||
NSMutableDictionary *space;
|
NSMutableDictionary *space;
|
||||||
space = [NSDictionary dictionaryWithObject: NSCalibratedRGBColorSpace
|
space = [NSMutableDictionary dictionaryWithObject: NSCalibratedRGBColorSpace
|
||||||
forKey: GSColorSpaceName];
|
forKey: GSColorSpaceName];
|
||||||
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
||||||
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
: (const float *) range
|
: (const float *) range
|
||||||
{
|
{
|
||||||
NSMutableDictionary *space;
|
NSMutableDictionary *space;
|
||||||
space = [NSDictionary dictionaryWithObject: @"NSLabColorSpace"
|
space = [NSMutableDictionary dictionaryWithObject: @"NSLabColorSpace"
|
||||||
forKey: GSColorSpaceName];
|
forKey: GSColorSpaceName];
|
||||||
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
[space setObject: FLOAT_ARRAY(whitePoint, 3) forKey: GSColorSpaceWhitePoint];
|
||||||
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
[space setObject: FLOAT_ARRAY(blackPoint, 3) forKey: GSColorSpaceBlackPoint];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue