Some RGSS2/RGSS3 compile fixes
This commit is contained in:
		
							parent
							
								
									91aefdc17a
								
							
						
					
					
						commit
						a541cb1205
					
				
					 4 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -70,7 +70,9 @@ RB_METHOD(mriP);
 | 
			
		|||
RB_METHOD(mriDataDirectory);
 | 
			
		||||
RB_METHOD(mkxpPuts);
 | 
			
		||||
 | 
			
		||||
#ifndef RGSS3
 | 
			
		||||
RB_METHOD(_kernelCaller);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static void mriBindingInit()
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,7 +77,7 @@ RB_METHOD(spriteWidth)
 | 
			
		|||
 | 
			
		||||
	Sprite *s = getPrivateData<Sprite>(self);
 | 
			
		||||
 | 
			
		||||
	int value;
 | 
			
		||||
	int value = 0;
 | 
			
		||||
	GUARD_EXC( value = s->getWidth(); )
 | 
			
		||||
 | 
			
		||||
	return rb_fix_new(value);
 | 
			
		||||
| 
						 | 
				
			
			@ -89,7 +89,7 @@ RB_METHOD(spriteHeight)
 | 
			
		|||
 | 
			
		||||
	Sprite *s = getPrivateData<Sprite>(self);
 | 
			
		||||
 | 
			
		||||
	int value;
 | 
			
		||||
	int value = 0;
 | 
			
		||||
	GUARD_EXC( value = s->getHeight(); )
 | 
			
		||||
 | 
			
		||||
	return rb_fix_new(value);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -797,7 +797,7 @@ void Graphics::resizeScreen(int width, int height)
 | 
			
		|||
	RBO::bind(p->transBuffer.rbo);
 | 
			
		||||
	RBO::allocEmpty(width, height);
 | 
			
		||||
 | 
			
		||||
	p->updateScreenResoRatio();
 | 
			
		||||
	p->updateScreenResoRatio(p->threadData);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DEF_ATTR_RD_SIMPLE(Graphics, Brightness, int, p->brightness)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1295,7 +1295,7 @@ void Tilemap::setViewport(Viewport *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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue