summaryrefslogtreecommitdiff
path: root/dmagick/CoderInfo.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/CoderInfo.d')
-rw-r--r--dmagick/CoderInfo.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/dmagick/CoderInfo.d b/dmagick/CoderInfo.d
index e003763..d37e54b 100644
--- a/dmagick/CoderInfo.d
+++ b/dmagick/CoderInfo.d
@@ -39,12 +39,21 @@ CoderInfo[] coderInfoList(MatchType readable, MatchType writable, MatchType mult
if ( readable == MatchType.False && coder.readable )
continue;
+ if ( readable == MatchType.True && !coder.readable )
+ continue;
+
if ( writable == MatchType.False && coder.writable )
continue;
+ if ( writable == MatchType.True && !coder.writable )
+ continue;
+
if ( multiFrame == MatchType.False && coder.supportsMultiFrame )
continue;
+ if ( multiFrame == MatchType.True && !coder.supportsMultiFrame )
+ continue;
+
list ~= coder;
}