mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 15:26:52 -04:00
fixes #288
This commit is contained in:
parent
00cae2ff76
commit
56e045bfa1
@ -164,11 +164,11 @@ public class DataPlotter implements Drawable {
|
|||||||
if (width == 0) width = 1;
|
if (width == 0) width = 1;
|
||||||
long value = s.getValue(i).getValue();
|
long value = s.getValue(i).getValue();
|
||||||
int ry;
|
int ry;
|
||||||
if (Math.abs(width >>> 1) < Integer.MAX_VALUE) {
|
long sWidth = (width >>> 32);
|
||||||
|
if (sWidth == 0) {
|
||||||
ry = (int) (SIZE - (SIZE * value) / width);
|
ry = (int) (SIZE - (SIZE * value) / width);
|
||||||
} else {
|
} else {
|
||||||
width = (width >>> 32);
|
ry = (int) (SIZE - (SIZE * (value >>> 32)) / sWidth);
|
||||||
ry = (int) (SIZE - (SIZE * (value >>> 32)) / width);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value != last[i].value)
|
if (value != last[i].value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user