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:
Jonas Kulla 2014-09-05 22:54:57 +02:00
parent 9461449cc9
commit bca95adc0e
1 changed files with 4 additions and 7 deletions

View File

@ -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;
}