aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPo Lu2023-01-25 19:15:30 +0800
committerPo Lu2023-01-25 19:15:30 +0800
commit888d3514967a90423d60dfa82bfd59b7f3df6c90 (patch)
tree33295e1eb9fad9fd675f35ad0b27554ef509e2fa /java
parentd63ee136d92247597d82ddc44ec71f6f71c28b5f (diff)
downloademacs-888d3514967a90423d60dfa82bfd59b7f3df6c90.tar.gz
emacs-888d3514967a90423d60dfa82bfd59b7f3df6c90.zip
Minor fixes to Android port
* java/Makefile.in: (emacs.apk-in): Don't call cp with empty args. * java/org/gnu/emacs/EmacsDrawLine.java (perform): Fix for PostScript filling semantics. * src/Makefile.in (android-emacs): Build android-emacs directly.
Diffstat (limited to 'java')
-rw-r--r--java/Makefile.in2
-rw-r--r--java/org/gnu/emacs/EmacsDrawLine.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/java/Makefile.in b/java/Makefile.in
index b32b2442305..755995b93b1 100644
--- a/java/Makefile.in
+++ b/java/Makefile.in
@@ -150,7 +150,9 @@ emacs.apk-in: $(CROSS_BINS) $(CROSS_LIBS) $(libsrc)/asset-directory-tool \
150 cp -f $$file install_temp/lib/$(ANDROID_ABI); \ 150 cp -f $$file install_temp/lib/$(ANDROID_ABI); \
151 fi \ 151 fi \
152 done 152 done
153ifneq ($(NDK_BUILD_SHARED),)
153 cp -f $(NDK_BUILD_SHARED) install_temp/lib/$(ANDROID_ABI) 154 cp -f $(NDK_BUILD_SHARED) install_temp/lib/$(ANDROID_ABI)
155endif
154# Package everything. Specifying the assets on this command line is 156# Package everything. Specifying the assets on this command line is
155# necessary for AAssetManager_getNextFileName to work on old versions 157# necessary for AAssetManager_getNextFileName to work on old versions
156# of Android. 158# of Android.
diff --git a/java/org/gnu/emacs/EmacsDrawLine.java b/java/org/gnu/emacs/EmacsDrawLine.java
index 827feb96dfb..717e2279a7d 100644
--- a/java/org/gnu/emacs/EmacsDrawLine.java
+++ b/java/org/gnu/emacs/EmacsDrawLine.java
@@ -56,9 +56,12 @@ public class EmacsDrawLine
56 56
57 paint.setStyle (Paint.Style.STROKE); 57 paint.setStyle (Paint.Style.STROKE);
58 58
59 /* Since drawLine has PostScript style behavior, adjust the
60 coordinates appropriately. */
61
59 if (gc.clip_mask == null) 62 if (gc.clip_mask == null)
60 canvas.drawLine ((float) x, (float) y, 63 canvas.drawLine ((float) x + 0.5f, (float) y + 0.5f,
61 (float) x2, (float) y2, 64 (float) x2 + 0.5f, (float) y2 + 0.5f,
62 paint); 65 paint);
63 66
64 /* DrawLine with clip mask not implemented; it is not used by 67 /* DrawLine with clip mask not implemented; it is not used by