MRI: WindowVX: Bind RGSS2 constructor (same as RGSS1)

This commit is contained in:
Jonas Kulla 2014-08-22 23:55:42 +02:00
parent b751858b16
commit f76ecfdba8
1 changed files with 7 additions and 1 deletions

View File

@ -32,13 +32,19 @@ void bitmapInitProps(Bitmap *b, VALUE self);
RB_METHOD(windowVXInitialize) RB_METHOD(windowVXInitialize)
{ {
WindowVX *w;
#if RGSS_VER == 3
int x, y, width, height; int x, y, width, height;
x = y = width = height = 0; x = y = width = height = 0;
if (argc == 4) if (argc == 4)
rb_get_args(argc, argv, "iiii", &x, &y, &width, &height RB_ARG_END); rb_get_args(argc, argv, "iiii", &x, &y, &width, &height RB_ARG_END);
WindowVX *w = new WindowVX(x, y, width, height); w = new WindowVX(x, y, width, height);
#else
w = viewportElementInitialize<WindowVX>(argc, argv, self);
#endif
setPrivateData(self, w); setPrivateData(self, w);