Viewport: Add zero arg constructor (RGSS3) and bind in MRI
This commit is contained in:
parent
5bc6f6f32c
commit
7a655528e4
3 changed files with 25 additions and 0 deletions
|
@ -32,6 +32,13 @@ RB_METHOD(viewportInitialize)
|
|||
{
|
||||
Viewport *v;
|
||||
|
||||
#ifdef RGSS3
|
||||
if (argc == 0)
|
||||
{
|
||||
v = new Viewport();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (argc == 1)
|
||||
{
|
||||
/* The rect arg is only used to init the viewport,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue