diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-22 22:31:00 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-29 16:03:34 +0100 |
commit | dba81b84129c4ef2870274c771bef5c05a7b3343 (patch) | |
tree | e44358e78217884a745d035160f44bdc6cf29c61 /platform/java/com/artifex | |
parent | 22abd39de1a3e29c27c07e7e4cacc43a2dc2df5b (diff) | |
download | mupdf-dba81b84129c4ef2870274c771bef5c05a7b3343.tar.xz |
jni: Fix scissor rect arguments to clipping functions.
Diffstat (limited to 'platform/java/com/artifex')
-rw-r--r-- | platform/java/com/artifex/mupdf/fitz/Device.java | 12 | ||||
-rw-r--r-- | platform/java/com/artifex/mupdf/fitz/NativeDevice.java | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/platform/java/com/artifex/mupdf/fitz/Device.java b/platform/java/com/artifex/mupdf/fitz/Device.java index c8bf23d4..45dea62d 100644 --- a/platform/java/com/artifex/mupdf/fitz/Device.java +++ b/platform/java/com/artifex/mupdf/fitz/Device.java @@ -38,12 +38,12 @@ public class Device * }; */ - public void beginPage(Rect rect, Matrix ctm) {} + public void beginPage(Rect area, Matrix ctm) {} public void endPage() {} public void fillPath(Path path, boolean evenOdd, Matrix ctm, ColorSpace cs, float color[], float alpha) {} public void strokePath(Path path, StrokeState stroke, Matrix ctm, ColorSpace cs, float color[], float alpha) {} - public void clipPath(Path path, Rect rect, boolean evenOdd, Matrix ctm) {} - public void clipStrokePath(Path path, Rect rect, StrokeState stroke, Matrix ctm) {} + public void clipPath(Path path, boolean evenOdd, Matrix ctm) {} + public void clipStrokePath(Path path, StrokeState stroke, Matrix ctm) {} public void fillText(Text text, Matrix ctm, ColorSpace cs, float color[], float alpha) {} public void strokeText(Text text, StrokeState stroke, Matrix ctm, ColorSpace cs, float color[], float alpha) {} public void clipText(Text text, Matrix ctm) {} @@ -52,11 +52,11 @@ public class Device public void fillShade(Shade shade, Matrix ctm, float alpha) {} public void fillImage(Image img, Matrix ctm, float alpha) {} public void fillImageMask(Image img, Matrix ctm, ColorSpace cs, float color[], float alpha) {} - public void clipImageMask(Image img, Rect rect, Matrix ctm) {} + public void clipImageMask(Image img, Matrix ctm) {} public void popClip() {} - public void beginMask(Rect rect, boolean luminosity, ColorSpace cs, float bc[]) {} + public void beginMask(Rect area, boolean luminosity, ColorSpace cs, float bc[]) {} public void endMask() {} - public void beginGroup(Rect rect, boolean isolated, boolean knockout, int blendmode, float alpha) {} + public void beginGroup(Rect area, boolean isolated, boolean knockout, int blendmode, float alpha) {} public void endGroup() {} public int beginTile(Rect area, Rect view, float xstep, float ystep, Matrix ctm, int id) { return 0; } public void endTile() {} diff --git a/platform/java/com/artifex/mupdf/fitz/NativeDevice.java b/platform/java/com/artifex/mupdf/fitz/NativeDevice.java index 6786688f..e9e351a9 100644 --- a/platform/java/com/artifex/mupdf/fitz/NativeDevice.java +++ b/platform/java/com/artifex/mupdf/fitz/NativeDevice.java @@ -17,13 +17,13 @@ public class NativeDevice extends Device super(p); } - public native final void beginPage(Rect rect, Matrix ctm); + public native final void beginPage(Rect area, Matrix ctm); public native final void endPage(); public native final void fillPath(Path path, boolean evenOdd, Matrix ctm, ColorSpace cs, float color[], float alpha); public native final void strokePath(Path path, StrokeState stroke, Matrix ctm, ColorSpace cs, float color[], float alpha); - public native final void clipPath(Path path, Rect rect, boolean evenOdd, Matrix ctm); - public native final void clipStrokePath(Path path, Rect rect, StrokeState stroke, Matrix ctm); + public native final void clipPath(Path path, boolean evenOdd, Matrix ctm); + public native final void clipStrokePath(Path path, StrokeState stroke, Matrix ctm); public native final void fillText(Text text, Matrix ctm, ColorSpace cs, float color[], float alpha); public native final void strokeText(Text text, StrokeState stroke, Matrix ctm, ColorSpace cs, float color[], float alpha); @@ -34,7 +34,7 @@ public class NativeDevice extends Device public native final void fillShade(Shade shade, Matrix ctm, float alpha); public native final void fillImage(Image img, Matrix ctm, float alpha); public native final void fillImageMask(Image img, Matrix ctm, ColorSpace cs, float color[], float alpha); - public native final void clipImageMask(Image img, Rect rect, Matrix ctm); + public native final void clipImageMask(Image img, Matrix ctm); public native final void popClip(); |