mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Add window position setter and getter
This commit is contained in:
parent
545f1f4d41
commit
3913a3ef74
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue