The Birdfont Source Code
Disable slow stroke on Android
These changes was commited to the Birdfont repository Mon, 18 May 2015 04:05:45 +0000.
Contributing
Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
Disable slow stroke on Android
--- a/libbirdfont/DrawingTools.vala
+++ b/libbirdfont/DrawingTools.vala
@@ -147,8 +147,9 @@
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);
--- a/libbirdfont/Path.vala
+++ b/libbirdfont/Path.vala
@@ -2322,9 +2322,11 @@
}
public void create_full_stroke () {
+ #if ANDROID == false
if (stroke > 0) {
full_stroke = StrokeTool.get_stroke (this, stroke);
}
+ #endif
}
public PathList get_stroke () {
--- a/libbirdfont/Test.vala
+++ b/libbirdfont/Test.vala
@@ -47,14 +47,14 @@
}
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";
}
}
}
--- a/scripts/AndroidBirdFont.mk
+++ b/scripts/AndroidBirdFont.mk
@@ -19,8 +19,8 @@
#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