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
|
@ -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);
|
||||||
{
|
VALUE contentsObj = wrapObject(contents, BitmapType);
|
||||||
Bitmap *contents = new Bitmap(1, 1);
|
bitmapInitProps(contents, contentsObj);
|
||||||
VALUE contentsObj = wrapObject(contents, BitmapType);
|
rb_iv_set(self, "contents", contentsObj);
|
||||||
bitmapInitProps(contents, contentsObj);
|
|
||||||
rb_iv_set(self, "contents", contentsObj);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue