MRI: WindowVX dummy contents object is always created
The check was against rgssVer >= 2, but since that's always true if WindowVX is used, it was pointless.
This commit is contained in:
		
							parent
							
								
									9461449cc9
								
							
						
					
					
						commit
						bca95adc0e
					
				
					 1 changed files with 4 additions and 7 deletions
				
			
		| 
						 | 
					@ -56,13 +56,10 @@ RB_METHOD(windowVXInitialize)
 | 
				
			||||||
	wrapProperty(self, w->getTone(), "tone", ToneType);
 | 
						wrapProperty(self, w->getTone(), "tone", ToneType);
 | 
				
			||||||
	wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
 | 
						wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (rgssVer >= 2)
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
	Bitmap *contents = new Bitmap(1, 1);
 | 
						Bitmap *contents = new Bitmap(1, 1);
 | 
				
			||||||
	VALUE contentsObj = wrapObject(contents, BitmapType);
 | 
						VALUE contentsObj = wrapObject(contents, BitmapType);
 | 
				
			||||||
	bitmapInitProps(contents, contentsObj);
 | 
						bitmapInitProps(contents, contentsObj);
 | 
				
			||||||
	rb_iv_set(self, "contents", contentsObj);
 | 
						rb_iv_set(self, "contents", contentsObj);
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return self;
 | 
						return self;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue