From 1d0822c89a9f2ea2a65160b28fe288834c27f9fe Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Sun, 6 Oct 2024 00:03:45 +0200 Subject: [PATCH] Rename SubPixmap.isSound() to SubPixmap.isValid() --- pixmappaint.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pixmappaint.d b/pixmappaint.d index 3750ff1..6900bd8 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -386,11 +386,11 @@ struct SubPixmap { the source. ) - Both defects could indicate a non-sound subimage. + Both defects could indicate an invalid subimage. Use this function to verify the SubPixmap. ) +/ - bool isSound() const { + bool isValid() const { return ( (sourceMarginLeft >= 0) && (sourceMarginTop >= 0) @@ -1974,7 +1974,7 @@ void drawPixmap(Pixmap target, const Pixmap image, Point pos, Blend blend = blen void drawPixmap(Pixmap target, const SubPixmap image, Point pos, Blend blend = blendNormal) { alias source = image; - debug assert(source.isSound); + debug assert(source.isValid); immutable tRect = OriginRectangle( Size(target.width, target.height),