mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Adopt to changes in gui.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36149 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5a5f73e79c
commit
6c450e3ea6
3 changed files with 16 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-02-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/gsc/GSContext.m
|
||||
* Source/x11/XGServerWindow.m
|
||||
Adopt to changes in gui.
|
||||
|
||||
2013-02-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/cairo/CairoGState.h
|
||||
|
|
|
@ -118,14 +118,14 @@ static NSMapTable *gtable;
|
|||
@end
|
||||
|
||||
@interface NSBitmapImageRep (GSPrivate)
|
||||
- (NSBitmapImageRep *) _convertToFormatBitsPerSample: (int)bps
|
||||
samplesPerPixel: (int)spp
|
||||
- (NSBitmapImageRep *) _convertToFormatBitsPerSample: (NSInteger)bps
|
||||
samplesPerPixel: (NSInteger)spp
|
||||
hasAlpha: (BOOL)alpha
|
||||
isPlanar: (BOOL)isPlanar
|
||||
colorSpaceName: (NSString*)colorSpaceName
|
||||
bitmapFormat: (NSBitmapFormat)bitmapFormat
|
||||
bytesPerRow: (int)rowBytes
|
||||
bitsPerPixel: (int)pixelBits;
|
||||
bytesPerRow: (NSInteger)rowBytes
|
||||
bitsPerPixel: (NSInteger)pixelBits;
|
||||
@end
|
||||
|
||||
|
||||
|
@ -875,9 +875,9 @@ static NSMapTable *gtable;
|
|||
bitmap = (NSBitmapImageRep*)imageref;
|
||||
if (![self isCompatibleBitmap: bitmap])
|
||||
{
|
||||
int bitsPerSample = 8;
|
||||
NSInteger bitsPerSample = 8;
|
||||
BOOL isPlanar = NO;
|
||||
int samplesPerPixel = [bitmap hasAlpha] ? 4 : 3;
|
||||
NSInteger samplesPerPixel = [bitmap hasAlpha] ? 4 : 3;
|
||||
NSString *colorSpaceName = NSCalibratedRGBColorSpace;
|
||||
NSBitmapImageRep *new;
|
||||
|
||||
|
|
|
@ -99,14 +99,14 @@ static int last_win_num = 0;
|
|||
@end
|
||||
|
||||
@interface NSBitmapImageRep (GSPrivate)
|
||||
- (NSBitmapImageRep *) _convertToFormatBitsPerSample: (int)bps
|
||||
samplesPerPixel: (int)spp
|
||||
- (NSBitmapImageRep *) _convertToFormatBitsPerSample: (NSInteger)bps
|
||||
samplesPerPixel: (NSInteger)spp
|
||||
hasAlpha: (BOOL)alpha
|
||||
isPlanar: (BOOL)isPlanar
|
||||
colorSpaceName: (NSString*)colorSpaceName
|
||||
bitmapFormat: (NSBitmapFormat)bitmapFormat
|
||||
bytesPerRow: (int)rowBytes
|
||||
bitsPerPixel: (int)pixelBits;
|
||||
bytesPerRow: (NSInteger)rowBytes
|
||||
bitsPerPixel: (NSInteger)pixelBits;
|
||||
@end
|
||||
|
||||
static NSBitmapImageRep *getStandardBitmap(NSImage *image)
|
||||
|
|
Loading…
Reference in a new issue