diff options
| author | Po Lu | 2023-01-25 19:15:30 +0800 |
|---|---|---|
| committer | Po Lu | 2023-01-25 19:15:30 +0800 |
| commit | 888d3514967a90423d60dfa82bfd59b7f3df6c90 (patch) | |
| tree | 33295e1eb9fad9fd675f35ad0b27554ef509e2fa /java/org | |
| parent | d63ee136d92247597d82ddc44ec71f6f71c28b5f (diff) | |
| download | emacs-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/org')
| -rw-r--r-- | java/org/gnu/emacs/EmacsDrawLine.java | 7 |
1 files changed, 5 insertions, 2 deletions
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 |