mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +00:00
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:
parent
2d16c15930
commit
b7699665db
5 changed files with 64 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue