add pollux/caanoo port, refactor things
[pcsx_rearmed.git] / frontend / pl_gun_ts.c
index 63cf33f..fbf25e3 100644 (file)
@@ -102,11 +102,15 @@ struct tsdev *pl_gun_ts_init(void)
 
        // FIXME: we should be able to get this somewhere
        // the problem is this doesn't always match resolution due to different display modes
+#ifdef __ARM_ARCH_7A__
        pl_set_gun_rect(0, 0, 800, 480);
+#else
+       pl_set_gun_rect(0, 0, 320, 240);
+#endif
        return ts;
 
 fail_config:
-       pts_close(ltsh);
+       pts_close(ts);
 fail_open:
 fail_dlsym:
        dlclose(ltsh);