aboutsummaryrefslogtreecommitdiff
path: root/aberth
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-07-16 20:57:08 +0200
committertomsmeding <tom.smeding@gmail.com>2019-07-16 20:57:08 +0200
commit05ca4999d45752a101dbb60df5d419a22d5011fb (patch)
tree52f30964d61ed10ca3dc670796f1cab9213e9da2 /aberth
parente048daa436c38079c64be376e8c2bc37490ffc99 (diff)
Fix vertical orientation of CPU code
Diffstat (limited to 'aberth')
-rw-r--r--aberth/compute_host.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/aberth/compute_host.cpp b/aberth/compute_host.cpp
index 38bf43d..343318f 100644
--- a/aberth/compute_host.cpp
+++ b/aberth/compute_host.cpp
@@ -29,7 +29,7 @@ vector<int> computeHost(int W, int H, Com bottomLeft, Com topRight) {
auto calcPos = [W, H, bottomLeft, topRight, &calcIndex](Com z) -> pair<int, int> {
return make_pair(
calcIndex(z.real(), bottomLeft.real(), topRight.real(), W),
- calcIndex(z.imag(), bottomLeft.imag(), topRight.imag(), H)
+ calcIndex(z.imag(), topRight.imag(), bottomLeft.imag(), H)
);
};