From 888d3514967a90423d60dfa82bfd59b7f3df6c90 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 25 Jan 2023 19:15:30 +0800 Subject: 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. --- java/org/gnu/emacs/EmacsDrawLine.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'java/org/gnu') 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 paint.setStyle (Paint.Style.STROKE); + /* Since drawLine has PostScript style behavior, adjust the + coordinates appropriately. */ + if (gc.clip_mask == null) - canvas.drawLine ((float) x, (float) y, - (float) x2, (float) y2, + canvas.drawLine ((float) x + 0.5f, (float) y + 0.5f, + (float) x2 + 0.5f, (float) y2 + 0.5f, paint); /* DrawLine with clip mask not implemented; it is not used by -- cgit v1.2.1