mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Image archiving fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10820 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
63d0ee2c7c
commit
67b4261f59
3 changed files with 15 additions and 14 deletions
|
@ -1,8 +1,8 @@
|
|||
Thu Aug 30 18:23:08 2001 Nicola Pero <nicola@brainstorm.co.uk>
|
||||
2001-08-30 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSBitmapImageRep.m ([+canInitWithData:]): Do not call
|
||||
NSTiffClose if the image is NULL (Suggested by Ludovic Marcotte
|
||||
<ludovic@Sophos.ca>).
|
||||
* Source/NSImage.m (-initWithCoder:): Fix encode typo.
|
||||
* Source/tiff.m (NSTiffWrite): Don't set JPEG quality if not
|
||||
doing JPEG compression
|
||||
|
||||
Thu Aug 30 10:30:22 2001 Nicola Pero <nicola@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -1031,23 +1031,23 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
|
||||
[coder decodeValueOfObjCType: @encode(NSSize) at: &_size];
|
||||
[coder decodeValueOfObjCType: @encode(id) at: &_color];
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.scalable = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.dataRetained = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.flipDraw = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.sizeWasExplicitlySet = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.useEPSOnResolutionMismatch = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.colorMatchPreferred = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.multipleResolutionMatching = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.cacheSeparately = flag;
|
||||
[coder encodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL) at: &flag];
|
||||
_flags.unboundedCacheDepth = flag;
|
||||
|
||||
/*
|
||||
|
|
|
@ -451,7 +451,8 @@ NSTiffWrite(TIFF* image, NSTiffInfo* info, char* data)
|
|||
TIFFSetField(image, TIFFTAG_IMAGEWIDTH, info->width);
|
||||
TIFFSetField(image, TIFFTAG_IMAGELENGTH, info->height);
|
||||
TIFFSetField(image, TIFFTAG_COMPRESSION, info->compression);
|
||||
TIFFSetField(image, TIFFTAG_JPEGQUALITY, info->quality);
|
||||
if (info->compression = COMPRESSION_JPEG)
|
||||
TIFFSetField(image, TIFFTAG_JPEGQUALITY, info->quality);
|
||||
TIFFSetField(image, TIFFTAG_SUBFILETYPE, info->subfileType);
|
||||
TIFFSetField(image, TIFFTAG_BITSPERSAMPLE, info->bitsPerSample);
|
||||
TIFFSetField(image, TIFFTAG_SAMPLESPERPIXEL, info->samplesPerPixel);
|
||||
|
|
Loading…
Reference in a new issue