mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:30:37 +00:00
Explicitly encode/decode enumerated types as 'int' which is what all
the existing archives use (even if it is incorrect as in many cases the types are actually 'unsigned int') git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74c604cbb0
commit
b854f2da8a
12 changed files with 59 additions and 36 deletions
|
@ -340,9 +340,9 @@ scaleProportionally(NSSize imageSize, NSRect canvasRect)
|
|||
}
|
||||
else
|
||||
{
|
||||
[aCoder encodeValueOfObjCType: @encode(NSImageAlignment) at: &_imageAlignment];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSImageFrameStyle) at: &_frameStyle];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSImageScaling) at: &_imageScaling];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_imageAlignment];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_frameStyle];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_imageScaling];
|
||||
[aCoder encodeSize: _original_image_size];
|
||||
}
|
||||
}
|
||||
|
@ -372,9 +372,9 @@ scaleProportionally(NSSize imageSize, NSRect canvasRect)
|
|||
}
|
||||
else
|
||||
{
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSImageAlignment) at: &_imageAlignment];
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSImageFrameStyle) at: &_frameStyle];
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSImageScaling) at: &_imageScaling];
|
||||
[aDecoder decodeValueOfObjCType: @encode(int) at: &_imageAlignment];
|
||||
[aDecoder decodeValueOfObjCType: @encode(int) at: &_frameStyle];
|
||||
[aDecoder decodeValueOfObjCType: @encode(int) at: &_imageScaling];
|
||||
_original_image_size = [aDecoder decodeSize];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue