Commit cde4e37
Disable slow stroke on Android
Changed files (4)
modifiedlibbirdfont/DrawingTools.valamodifiedlibbirdfont/Path.valamodifiedlibbirdfont/Test.valamodifiedscripts/AndroidBirdFont.mk
Diff
@@ -147,8 +147,9 @@ public class DrawingTools : ToolCollection { zoom_tool.select_action.connect ((self) => { update_drawing_and_background_tools (self); });+#if ANDROID == false draw_tools.add_tool (zoom_tool);-+#endif move_tool = new MoveTool ("move"); move_tool.select_action.connect ((self) => { update_drawing_and_background_tools (self);@@ -2322,9 +2322,11 @@ public class Path { } public void create_full_stroke () {+#if ANDROID == false if (stroke > 0) { full_stroke = StrokeTool.get_stroke (this, stroke); }+#endif } public PathList get_stroke () {@@ -47,12 +47,12 @@ public class Test : Object { } public void print () {- stdout.printf (get_time ());+ stdout.printf (get_test_time ()); } - public string get_time () {+ public string get_test_time () { double stop_time = GLib.get_real_time ();- return @"$name $((stop_time - start_time) / 1000000.0)s\n";+ return @"$name $((stop_time - time_stamp) / 1000000.0)s\n"; } } @@ -19,8 +19,8 @@ LOCAL_CFLAGS += -I /opt/android/include/cairo #FIXME: $(TARGET_ARCH_ABI) +LOCAL_LDLIBS += /opt/android/lib/libsqlite.a LOCAL_LDLIBS += -L/opt/android/lib-LOCAL_LDLIBS += -lsqliteX LOCAL_LDLIBS += -ljava-bitmap LOCAL_LDLIBS += -lgee LOCAL_LDLIBS += -lft2