mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 17:16:26 +00:00
Add binding implementation.
Clean up table view decoding. Move image draw code to back. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25602 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
56b6a0ff3e
commit
00a7c05d91
4 changed files with 233 additions and 132 deletions
|
@ -1465,16 +1465,7 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
been implemented yet, so it should not be used anywhere. */
|
||||
- (void) GSDrawImage: (NSRect)rect: (void *)imageref
|
||||
{
|
||||
NSBitmapImageRep *bitmap;
|
||||
const unsigned char *data[5];
|
||||
|
||||
bitmap = (NSBitmapImageRep*)imageref;
|
||||
[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];
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue