Add window position setter and getter

This commit is contained in:
Vinyl Darkscratch 2017-04-03 04:58:41 -07:00
parent 545f1f4d41
commit 3913a3ef74
3 changed files with 4 additions and 4 deletions

View file

@ -83,8 +83,8 @@ RB_METHOD(oneshotGetWindowPos)
int x, y;
SDL_GetWindowPosition(shState->rtData().window, &x, &y);
VALUE ary = rb_ary_new();
rb_ary_push(ary,rb_fix_new(x));
rb_ary_push(ary,rb_fix_new(y));
rb_ary_push(ary, rb_int_new(x));
rb_ary_push(ary, rb_int_new(y));
return ary;
}

View file

@ -1,6 +1,6 @@
#!/bin/sh
mac_version="0.3.1"
mac_version="0.3.2"
# Generate makefile and build main + journal
qmake MRIVERSION=2.3

View file

@ -31,6 +31,6 @@
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017, OneShot team, all rights reserved. View CREDITS.txt for more. Ported for macOS by Vinyl Darkscratch.</string>
<key>NSHighResolutionCapable</key>
<string>False</string>
<string>True</string>
</dict>
</plist>