mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
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:
parent
c3004129ed
commit
2d801f3700
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in a new issue