Rename SubPixmap.isSound() to SubPixmap.isValid()

This commit is contained in:
Elias Batek 2024-10-06 00:03:45 +02:00
parent d83ae00982
commit 1d0822c89a
1 changed files with 3 additions and 3 deletions

View File

@ -386,11 +386,11 @@ struct SubPixmap {
the source. the source.
) )
Both defects could indicate a non-sound subimage. Both defects could indicate an invalid subimage.
Use this function to verify the SubPixmap. Use this function to verify the SubPixmap.
) )
+/ +/
bool isSound() const { bool isValid() const {
return ( return (
(sourceMarginLeft >= 0) (sourceMarginLeft >= 0)
&& (sourceMarginTop >= 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) { void drawPixmap(Pixmap target, const SubPixmap image, Point pos, Blend blend = blendNormal) {
alias source = image; alias source = image;
debug assert(source.isSound); debug assert(source.isValid);
immutable tRect = OriginRectangle( immutable tRect = OriginRectangle(
Size(target.width, target.height), Size(target.width, target.height),