rmtew committed 89e1cdf

Outstanding changes, I did not commit.

Comments (0)

Files changed (1)


 #include <SDL.h>
 #include <libtcod.h>
+/* NOTE: These are internal TCOD functions.  */
+float TCOD_sys_get_scale_factor();
+void TCOD_sys_set_scale_factor(float value);
 /* Change these. */
 #define LOG_TAG "BrogueX"
 #define PKGNAME_FUNCTION org_disinterest_broguex
 /* Functions called from JNI to make calls on the TCOD API. */
+jfloat PACKAGE_FNAME(PKGNAME_FUNCTION,nativeTCODGetScaleFactor)(JNIEnv *env, jclass cls) {
+	float v = TCOD_sys_get_scale_factor();
+	printf("nativeTCODGetScaleFactor() => %f", v);
+	return TCOD_sys_get_scale_factor();
 void PACKAGE_FNAME(PKGNAME_FUNCTION,nativeTCODSetScaleFactor)(JNIEnv *env, jclass cls, jfloat scale_factor) {
 	/* BUG: Despite scale_factor being correct here, it does not seem to get received as anything
 	 * 		other than 0.0f within TCOD_sys_set_scale_factor(). */
-void PACKAGE_FNAME(PKGNAME_FUNCTION,nativeGestureFling)(JNIEnv *env, jclass cls, jint touch_device_id_in, jfloat x0, jfloat y0, jfloat x1, jfloat y1) {
-	printf("nativeGestureFling dev %d start %0.2f %0.2f end %0.2f %0.2f\n", x0, y0, x1, y1);
 void PACKAGE_FNAME(PKGNAME_FUNCTION,nativeGestureLongTouch)(JNIEnv *env, jclass cls, jint touch_device_id_in, jfloat xf, jfloat yf) {
 	int w, h, screen_x, screen_y;
 	TCOD_sys_get_current_resolution(&w, &h);