Bind Bitmap.update

This commit is contained in:
Inori 2019-09-05 18:17:40 -04:00
parent 5df5dcb873
commit 4f43b36dbd
2 changed files with 14 additions and 3 deletions

View file

@ -204,6 +204,17 @@ RB_METHOD(bitmapClear)
return self;
}
RB_METHOD(bitmapUpdate)
{
RB_UNUSED_PARAM;
Bitmap *b = getPrivateData<Bitmap>(self);
GUARD_EXC( b->update(); )
return self;
}
RB_METHOD(bitmapGetPixel)
{
Bitmap *b = getPrivateData<Bitmap>(self);

View file

@ -115,12 +115,12 @@ struct BitmapPrivate
BitmapPrivate(Bitmap *self)
: self(self),
megaSurface(0),
surface(0),
#ifdef HAVE_GIFLIB
nFrames(1),
currentFrame(0)
currentFrame(0),
#endif
megaSurface(0),
surface(0)
{
format = SDL_AllocFormat(SDL_PIXELFORMAT_ABGR8888);