diff --git a/pixmappaint.d b/pixmappaint.d index 3aaea4f..7b0a4a4 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -369,7 +369,7 @@ struct SubPixmap { (`Point(O, 0)` is the top left corner of the source image.) +/ Point sourceOffsetEnd() const { - auto vec = Point(size.x, (size.y - 1)); + auto vec = Point(size.width, (size.height - 1)); return (offset + vec); }