Do all bitmap image drawing via GSDrawImage:: to allow better

implementations in backends.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25600 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-11-22 10:47:33 +00:00
parent 2d16c15930
commit b7699665db
5 changed files with 64 additions and 40 deletions

View file

@ -1071,18 +1071,9 @@
- (BOOL) draw
{
NSRect irect = NSMakeRect(0, 0, _size.width, _size.height);
NSGraphicsContext *ctxt = GSCurrentContext();
NSDrawBitmap(irect,
_pixelsWide,
_pixelsHigh,
_bitsPerSample,
_numColors,
_bitsPerPixel,
_bytesPerRow,
_isPlanar,
_hasAlpha,
_colorSpace,
(const unsigned char **)_imagePlanes);
[ctxt GSDrawImage: irect : self];
return YES;
}