X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fpainter.cpp;h=853d3502690a494afdeb3635925d275fa087e6c8;hb=1d17841ed1d003060250dc2ef8dd6785fa02a07f;hp=322e1508ebe7f5bd55172b93ecae6c591fc4a74f;hpb=eb39f1bb5e6518c5dc4f4dbd3c88912a97192e95;p=architektonas diff --git a/src/painter.cpp b/src/painter.cpp index 322e150..853d350 100644 --- a/src/painter.cpp +++ b/src/painter.cpp @@ -44,12 +44,12 @@ origin is -10, -10 and zoom level is 2 (200%) 1st, invert the Y: 10, 10 -> 10, 90 2nd, add origin: 10, 90 -> 0, 80 (no, not right--err, yes, it is) -3rd, aply zoom: 0, 80 -> 0, 40 +3rd, apply zoom: 0, 80 -> 0, 40 or, is it: 1st, invert the Y: 10, 10 -> 10, 90 -2nd, aply zoom: 10, 90 -> 5, 45 +2nd, apply zoom: 10, 90 -> 5, 45 3rd, add origin: 5, 45 -> -5, 35 it depends on whether or not origin is in Qt coords or cartesian. If Qt, then the 1st