Add window position setter and getter
This commit is contained in:
parent
545f1f4d41
commit
3913a3ef74
|
|
@ -83,8 +83,8 @@ RB_METHOD(oneshotGetWindowPos)
|
||||||
int x, y;
|
int x, y;
|
||||||
SDL_GetWindowPosition(shState->rtData().window, &x, &y);
|
SDL_GetWindowPosition(shState->rtData().window, &x, &y);
|
||||||
VALUE ary = rb_ary_new();
|
VALUE ary = rb_ary_new();
|
||||||
rb_ary_push(ary,rb_fix_new(x));
|
rb_ary_push(ary, rb_int_new(x));
|
||||||
rb_ary_push(ary,rb_fix_new(y));
|
rb_ary_push(ary, rb_int_new(y));
|
||||||
return ary;
|
return ary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mac_version="0.3.1"
|
mac_version="0.3.2"
|
||||||
|
|
||||||
# Generate makefile and build main + journal
|
# Generate makefile and build main + journal
|
||||||
qmake MRIVERSION=2.3
|
qmake MRIVERSION=2.3
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,6 @@
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Copyright © 2017, OneShot team, all rights reserved. View CREDITS.txt for more. Ported for macOS by Vinyl Darkscratch.</string>
|
<string>Copyright © 2017, OneShot team, all rights reserved. View CREDITS.txt for more. Ported for macOS by Vinyl Darkscratch.</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<string>False</string>
|
<string>True</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue