aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-find-rectangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-find-rectangle.c')
-rw-r--r--src/blind-find-rectangle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blind-find-rectangle.c b/src/blind-find-rectangle.c
index 51b164c..a71e7e9 100644
--- a/src/blind-find-rectangle.c
+++ b/src/blind-find-rectangle.c
@@ -111,13 +111,13 @@ main(int argc, char *argv[])
cache = emalloc2(stream.width + 1, sizeof(*cache));
buf = emalloc(stream.row_size);
- if (!strcmp(stream.pixfmt, "xyza")) {
+ if (stream.encoding == DOUBLE) {
colour_lf[0] = X;
colour_lf[1] = Y;
colour_lf[2] = Z;
colour_lf[3] = alpha;
process(colour_lf);
- } else if (!strcmp(stream.pixfmt, "xyza f")) {
+ } else if (stream.encoding == FLOAT) {
colour_f[0] = (float)X;
colour_f[1] = (float)Y;
colour_f[2] = (float)Z;