changeset 2096:6b2bac1e3445

Improve PPM/PNM/PGM probing.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Mar 2019 10:32:28 +0200
parents 80786a28caf0
children f43011ea9b9f
files tools/libgfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/libgfx.c	Tue Mar 05 09:57:32 2019 +0200
+++ b/tools/libgfx.c	Tue Mar 05 10:32:28 2019 +0200
@@ -794,7 +794,7 @@
 {
     if (len > 32 &&
         buf[0] == 'P' &&
-        buf[1] == '5' &&
+        (buf[1] == '5' || buf[1] == '6') &&
         buf[2] == 0x0a && isdigit(buf[3]))
         return DM_PROBE_SCORE_MAX;