Some RGSS2/RGSS3 compile fixes

This commit is contained in:
Jonas Kulla 2014-07-13 05:34:18 +02:00
parent 91aefdc17a
commit a541cb1205
4 changed files with 6 additions and 4 deletions

View File

@ -70,7 +70,9 @@ RB_METHOD(mriP);
RB_METHOD(mriDataDirectory); RB_METHOD(mriDataDirectory);
RB_METHOD(mkxpPuts); RB_METHOD(mkxpPuts);
#ifndef RGSS3
RB_METHOD(_kernelCaller); RB_METHOD(_kernelCaller);
#endif
static void mriBindingInit() static void mriBindingInit()
{ {

View File

@ -77,7 +77,7 @@ RB_METHOD(spriteWidth)
Sprite *s = getPrivateData<Sprite>(self); Sprite *s = getPrivateData<Sprite>(self);
int value; int value = 0;
GUARD_EXC( value = s->getWidth(); ) GUARD_EXC( value = s->getWidth(); )
return rb_fix_new(value); return rb_fix_new(value);
@ -89,7 +89,7 @@ RB_METHOD(spriteHeight)
Sprite *s = getPrivateData<Sprite>(self); Sprite *s = getPrivateData<Sprite>(self);
int value; int value = 0;
GUARD_EXC( value = s->getHeight(); ) GUARD_EXC( value = s->getHeight(); )
return rb_fix_new(value); return rb_fix_new(value);

View File

@ -797,7 +797,7 @@ void Graphics::resizeScreen(int width, int height)
RBO::bind(p->transBuffer.rbo); RBO::bind(p->transBuffer.rbo);
RBO::allocEmpty(width, height); RBO::allocEmpty(width, height);
p->updateScreenResoRatio(); p->updateScreenResoRatio(p->threadData);
} }
DEF_ATTR_RD_SIMPLE(Graphics, Brightness, int, p->brightness) DEF_ATTR_RD_SIMPLE(Graphics, Brightness, int, p->brightness)

View File

@ -1295,7 +1295,7 @@ void Tilemap::setViewport(Viewport *value)
p->elem.ground->setViewport(value); p->elem.ground->setViewport(value);
for (size_t i = 0; i < p->elem.scanrows.size(); ++i) for (size_t i = 0; i < scanrowsMax; ++i)
p->elem.scanrows[i]->setViewport(value); p->elem.scanrows[i]->setViewport(value);
} }