git://git.nikiroo.be
/
fanfix-jexer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fc2e71
)
ImageUtilsAwt: fix rotation, now inverts width/height
author
Niki Roo
<niki@nikiroo.be>
Mon, 4 May 2020 16:31:22 +0000
(18:31 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Mon, 4 May 2020 16:31:22 +0000
(18:31 +0200)
ui/ImageUtilsAwt.java
patch
|
blob
|
blame
|
history
diff --git
a/ui/ImageUtilsAwt.java
b/ui/ImageUtilsAwt.java
index 2919d6b640c02ca2f0c5c7abab8ab5fb04f7829a..19c16a01749eff75fc430d68222fb7e243b2f5b4 100644
(file)
--- a/
ui/ImageUtilsAwt.java
+++ b/
ui/ImageUtilsAwt.java
@@
-214,6
+214,11
@@
public class ImageUtilsAwt extends ImageUtils {
}
affineTransform.translate(height, 0);
affineTransform.rotate(Math.PI / 2);
+
+ int tmp = width;
+ width = height;
+ height = tmp;
+
break;
case LEFT:
if (affineTransform == null) {
@@
-221,6
+226,11
@@
public class ImageUtilsAwt extends ImageUtils {
}
affineTransform.translate(0, width);
affineTransform.rotate(3 * Math.PI / 2);
+
+ int temp = width;
+ width = height;
+ height = temp;
+
break;
case UTURN:
if (affineTransform == null) {