mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-25 00:40:55 +00:00
Fixes compile warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@35371 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5f7ea64199
commit
3aeec4ae2e
1 changed files with 11 additions and 3 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
/* Designated initializer. */
|
||||
- initWithDrawContext: (GSContext *)drawContext
|
||||
{
|
||||
{
|
||||
self = [super init];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
@ -101,6 +101,14 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (NSString*) description
|
||||
{
|
||||
NSMutableString *description = [[super description] mutableCopy];
|
||||
[description appendFormat: @" drawcontext: %@",drawcontext];
|
||||
[description appendFormat: @" ctm: %@",ctm];
|
||||
return [description copy];
|
||||
}
|
||||
|
||||
- copyWithZone: (NSZone *)zone
|
||||
{
|
||||
GSGState *new = (GSGState *)NSCopyObject(self, 0, zone);
|
||||
|
@ -299,7 +307,7 @@
|
|||
{
|
||||
device_color_t col;
|
||||
|
||||
ASSIGN(fillColorS, spaceref);
|
||||
ASSIGN(fillColorS, (NSColorSpace*)spaceref);
|
||||
gsMakeColor(&col, rgb_colorspace, 0, 0, 0, 0);
|
||||
// Keep the old alpha value
|
||||
col.field[AINDEX] = fillColor.field[AINDEX];
|
||||
|
@ -310,7 +318,7 @@
|
|||
{
|
||||
device_color_t col;
|
||||
|
||||
ASSIGN(strokeColorS, spaceref);
|
||||
ASSIGN(strokeColorS, (NSColorSpace*)spaceref);
|
||||
gsMakeColor(&col, rgb_colorspace, 0, 0, 0, 0);
|
||||
// Keep the old alpha value
|
||||
col.field[AINDEX] = fillColor.field[AINDEX];
|
||||
|
|
Loading…
Reference in a new issue