Small bug fix (mostly to avoid compiler warning) by Anibal Rindisbacher

<anibal784@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29922 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-03-13 13:09:59 +00:00
parent c3004129ed
commit 2d801f3700
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-03-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/gsc/GSContext.m (-GSDrawImage::):
Bug fix by Anibal Rindisbacher <anibal784@gmail.com>
2010-03-12 Doug Simons <doug.simons@testplant.com>
* Source/win32/WIN32Server.m: Capture the mouse to get mouse

View file

@ -824,15 +824,15 @@ static NSMapTable *gtable;
- (void) GSDrawImage: (NSRect) rect: (void *) imageref
{
NSBitmapImageRep *bitmap;
const unsigned char *data[5];
unsigned char *data[5];
bitmap = (NSBitmapImageRep*)imageref;
[bitmap getBitmapDataPlanes: &data];
[bitmap getBitmapDataPlanes: data];
[self NSDrawBitmap: rect : [bitmap pixelsWide] : [bitmap pixelsHigh]
: [bitmap bitsPerSample] : [bitmap samplesPerPixel]
: [bitmap bitsPerPixel] : [bitmap bytesPerRow] : [bitmap isPlanar]
: [bitmap hasAlpha] : [bitmap colorSpaceName]
: data];
: (const unsigned char**)data];
}
/* ----------------------------------------------------------------------- */