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