=== modified file 'src/wizardpen.c' --- src/wizardpen.c 2011-11-11 00:49:02 +0000 +++ src/wizardpen.c 2011-11-17 14:25:12 +0000 @@ -1230,9 +1230,9 @@ { float ratio = (float)priv->screenX / priv->screenY; if (ratio > 1) - report_x = min(report_x*ratio*ratio, priv->bottomX); + report_x = min(priv->topX + (report_x-priv->topX)*ratio*ratio, priv->bottomX); else - report_y = min(report_y/(ratio*ratio), priv->bottomY); + report_y = min(priv->topY + (report_y-priv->topY)/(ratio*ratio), priv->bottomY); } report_buttons = buttons;