diff options
Diffstat (limited to 'java/org/gnu')
| -rw-r--r-- | java/org/gnu/emacs/EmacsPixmap.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/org/gnu/emacs/EmacsPixmap.java b/java/org/gnu/emacs/EmacsPixmap.java index eb011bc5e65..2cbf7a430cf 100644 --- a/java/org/gnu/emacs/EmacsPixmap.java +++ b/java/org/gnu/emacs/EmacsPixmap.java | |||
| @@ -34,7 +34,7 @@ public final class EmacsPixmap extends EmacsHandleObject | |||
| 34 | { | 34 | { |
| 35 | /* The depth of the bitmap. This is not actually used, just defined | 35 | /* The depth of the bitmap. This is not actually used, just defined |
| 36 | in order to be consistent with X. */ | 36 | in order to be consistent with X. */ |
| 37 | public int depth, width, height; | 37 | public final int depth, width, height; |
| 38 | 38 | ||
| 39 | /* The bitmap itself. */ | 39 | /* The bitmap itself. */ |
| 40 | public Bitmap bitmap; | 40 | public Bitmap bitmap; |
| @@ -44,7 +44,7 @@ public final class EmacsPixmap extends EmacsHandleObject | |||
| 44 | 44 | ||
| 45 | /* Whether or not GC should be explicitly triggered upon | 45 | /* Whether or not GC should be explicitly triggered upon |
| 46 | release. */ | 46 | release. */ |
| 47 | private boolean needCollect; | 47 | private final boolean needCollect; |
| 48 | 48 | ||
| 49 | /* ID used to determine whether or not the GC clip rects | 49 | /* ID used to determine whether or not the GC clip rects |
| 50 | changed. */ | 50 | changed. */ |
| @@ -77,6 +77,10 @@ public final class EmacsPixmap extends EmacsHandleObject | |||
| 77 | this.width = width; | 77 | this.width = width; |
| 78 | this.height = height; | 78 | this.height = height; |
| 79 | this.depth = depth; | 79 | this.depth = depth; |
| 80 | |||
| 81 | /* The immutable bitmap constructor is only leveraged to create | ||
| 82 | small fringe bitmaps. */ | ||
| 83 | this.needCollect = false; | ||
| 80 | } | 84 | } |
| 81 | 85 | ||
| 82 | public | 86 | public |