mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Bind Bitmap.update
This commit is contained in:
parent
5df5dcb873
commit
4f43b36dbd
2 changed files with 14 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue