diff options
| author | Po Lu | 2023-06-23 11:54:56 +0800 |
|---|---|---|
| committer | Po Lu | 2023-06-23 11:54:56 +0800 |
| commit | a5ee9a69ae73843bf3e620dbe474d5cdaaff5f3a (patch) | |
| tree | 3c53abf30cf620a3c2f045e2962e76829a01b8bb /java | |
| parent | 866a937540c090ff7b740d7732e46c2e8b30a36d (diff) | |
| download | emacs-a5ee9a69ae73843bf3e620dbe474d5cdaaff5f3a.tar.gz emacs-a5ee9a69ae73843bf3e620dbe474d5cdaaff5f3a.zip | |
Update Android port
* java/org/gnu/emacs/EmacsDrawRectangle.java (perform):
* java/org/gnu/emacs/EmacsSdk7FontDriver.java (Sdk7FontEntity):
(hasChar): Clean up dead stores.
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsDrawRectangle.java | 1 | ||||
| -rw-r--r-- | java/org/gnu/emacs/EmacsSdk7FontDriver.java | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/java/org/gnu/emacs/EmacsDrawRectangle.java b/java/org/gnu/emacs/EmacsDrawRectangle.java index b54b031b56b..e1261b4a2d2 100644 --- a/java/org/gnu/emacs/EmacsDrawRectangle.java +++ b/java/org/gnu/emacs/EmacsDrawRectangle.java | |||
| @@ -72,7 +72,6 @@ public final class EmacsDrawRectangle | |||
| 72 | + clipBitmap.getWidth ()), | 72 | + clipBitmap.getWidth ()), |
| 73 | (gc.clip_y_origin | 73 | (gc.clip_y_origin |
| 74 | + clipBitmap.getHeight ())); | 74 | + clipBitmap.getHeight ())); |
| 75 | clipBitmap = gc.clip_mask.bitmap; | ||
| 76 | 75 | ||
| 77 | if (!maskRect.setIntersect (dstRect, maskRect)) | 76 | if (!maskRect.setIntersect (dstRect, maskRect)) |
| 78 | /* There is no intersection between the clip mask and the | 77 | /* There is no intersection between the clip mask and the |
diff --git a/java/org/gnu/emacs/EmacsSdk7FontDriver.java b/java/org/gnu/emacs/EmacsSdk7FontDriver.java index 9122b46458a..97969585d16 100644 --- a/java/org/gnu/emacs/EmacsSdk7FontDriver.java +++ b/java/org/gnu/emacs/EmacsSdk7FontDriver.java | |||
| @@ -169,8 +169,6 @@ public class EmacsSdk7FontDriver extends EmacsFontDriver | |||
| 169 | public | 169 | public |
| 170 | Sdk7FontEntity (Sdk7Typeface typeface) | 170 | Sdk7FontEntity (Sdk7Typeface typeface) |
| 171 | { | 171 | { |
| 172 | float width; | ||
| 173 | |||
| 174 | foundry = "Google"; | 172 | foundry = "Google"; |
| 175 | family = typeface.familyName; | 173 | family = typeface.familyName; |
| 176 | adstyle = null; | 174 | adstyle = null; |
| @@ -363,7 +361,7 @@ public class EmacsSdk7FontDriver extends EmacsFontDriver | |||
| 363 | public int | 361 | public int |
| 364 | hasChar (FontSpec font, char charCode) | 362 | hasChar (FontSpec font, char charCode) |
| 365 | { | 363 | { |
| 366 | float missingGlyphWidth, emGlyphWidth, width; | 364 | float missingGlyphWidth, width; |
| 367 | Rect rect1, rect2; | 365 | Rect rect1, rect2; |
| 368 | Paint paint; | 366 | Paint paint; |
| 369 | Sdk7FontObject fontObject; | 367 | Sdk7FontObject fontObject; |
| @@ -382,7 +380,6 @@ public class EmacsSdk7FontDriver extends EmacsFontDriver | |||
| 382 | return 1; | 380 | return 1; |
| 383 | 381 | ||
| 384 | missingGlyphWidth = paint.measureText (TOFU_STRING); | 382 | missingGlyphWidth = paint.measureText (TOFU_STRING); |
| 385 | emGlyphWidth = paint.measureText (EM_STRING); | ||
| 386 | width = paint.measureText ("" + charCode); | 383 | width = paint.measureText ("" + charCode); |
| 387 | 384 | ||
| 388 | if (width == 0f) | 385 | if (width == 0f) |