MRI: Graphics: Bind resize_screen
This commit is contained in:
		
							parent
							
								
									3968ebb538
								
							
						
					
					
						commit
						dbb2249ff3
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
					@ -167,6 +167,18 @@ RB_METHOD(graphicsSnapToBitmap)
 | 
				
			||||||
	return obj;
 | 
						return obj;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RB_METHOD(graphicsResizeScreen)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						RB_UNUSED_PARAM;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						int width, height;
 | 
				
			||||||
 | 
						rb_get_args(argc, argv, "ii", &width, &height RB_ARG_END);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						shState->graphics().resizeScreen(width, height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return Qnil;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DEF_GRA_PROP_I(Brightness)
 | 
					DEF_GRA_PROP_I(Brightness)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					@ -199,6 +211,7 @@ void graphicsBindingInit()
 | 
				
			||||||
	_rb_define_module_function(module, "fadeout", graphicsFadeout);
 | 
						_rb_define_module_function(module, "fadeout", graphicsFadeout);
 | 
				
			||||||
	_rb_define_module_function(module, "fadein", graphicsFadein);
 | 
						_rb_define_module_function(module, "fadein", graphicsFadein);
 | 
				
			||||||
	_rb_define_module_function(module, "snap_to_bitmap", graphicsSnapToBitmap);
 | 
						_rb_define_module_function(module, "snap_to_bitmap", graphicsSnapToBitmap);
 | 
				
			||||||
 | 
						_rb_define_module_function(module, "resize_screen", graphicsResizeScreen);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	INIT_GRA_PROP_BIND( Brightness, "brightness" );
 | 
						INIT_GRA_PROP_BIND( Brightness, "brightness" );
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue