From 3913a3ef745ce1c7b516b02233456f10dec24395 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Mon, 3 Apr 2017 04:58:41 -0700 Subject: [PATCH] Add window position setter and getter --- binding-mri/oneshot-binding.cpp | 4 ++-- make-oneshot-mac.sh | 2 +- patches/mac/Info.plist.in | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/binding-mri/oneshot-binding.cpp b/binding-mri/oneshot-binding.cpp index b78292e..d8a5e02 100644 --- a/binding-mri/oneshot-binding.cpp +++ b/binding-mri/oneshot-binding.cpp @@ -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; } diff --git a/make-oneshot-mac.sh b/make-oneshot-mac.sh index 2bd9ef2..31c4d81 100755 --- a/make-oneshot-mac.sh +++ b/make-oneshot-mac.sh @@ -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 diff --git a/patches/mac/Info.plist.in b/patches/mac/Info.plist.in index 4fe71cd..427598a 100755 --- a/patches/mac/Info.plist.in +++ b/patches/mac/Info.plist.in @@ -31,6 +31,6 @@ NSHumanReadableCopyright Copyright © 2017, OneShot team, all rights reserved. View CREDITS.txt for more. Ported for macOS by Vinyl Darkscratch. NSHighResolutionCapable - False + True