Revert Disposable concept back into core
Pretty much a revert of
e858bbdcf5
.
We need this in core to properly implement F12 reset.
This commit is contained in:
parent
3983fe66e9
commit
81ac0780f8
36 changed files with 476 additions and 210 deletions
|
@ -114,7 +114,7 @@ MRB_METHOD(bitmapBlt)
|
|||
src = getPrivateDataCheck<Bitmap>(mrb, srcObj, BitmapType);
|
||||
srcRect = getPrivateDataCheck<Rect>(mrb, srcRectObj, RectType);
|
||||
|
||||
GUARD_EXC( b->blt(x, y, src, srcRect->toIntRect(), opacity); )
|
||||
GUARD_EXC( b->blt(x, y, *src, srcRect->toIntRect(), opacity); )
|
||||
|
||||
return mrb_nil_value();
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ MRB_METHOD(bitmapStretchBlt)
|
|||
destRect = getPrivateDataCheck<Rect>(mrb, destRectObj, RectType);
|
||||
srcRect = getPrivateDataCheck<Rect>(mrb, srcRectObj, RectType);
|
||||
|
||||
GUARD_EXC( b->stretchBlt(destRect->toIntRect(), src, srcRect->toIntRect(), opacity); )
|
||||
GUARD_EXC( b->stretchBlt(destRect->toIntRect(), *src, srcRect->toIntRect(), opacity); )
|
||||
|
||||
return mrb_nil_value();
|
||||
}
|
||||
|
@ -280,7 +280,7 @@ MRB_METHOD(bitmapTextSize)
|
|||
|
||||
MRB_METHOD(bitmapGetFont)
|
||||
{
|
||||
checkDisposed(mrb, self);
|
||||
checkDisposed<Bitmap>(mrb, self);
|
||||
|
||||
return getProperty(mrb, self, CSfont);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue