Attached are two small patches to allow me opening a edid block through
libminitru and to use differing compiler flags.
kind regards
Kai-Uwe Behrmann
--
developing for colour management
www.behrmann.name + www.oyranos.org
diff --git a/edid.c b/edid.c
index bf8a565..076b714 100644
--- a/edid.c
+++ b/edid.c
@@ -38,13 +38,13 @@ static uint32_t edid_probe(struct mt_monitor *mon)
if (blocks * 128 != mon->len)
return 0;
- if (!memcmp(block, header, 8))
+ if (memcmp(block, header, 8) != 0)
return 0;
if (edid_version(block) != 1)
return 0;
- for (i = 0; i < 128; i++)
+ for (i = 0; i < mon->len; i += 128)
if (!edid_valid_checksum(block + (i * 128)))
return 0;
diff --git a/Makefile b/Makefile
index ef62b53..623a28d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,10 +14,10 @@ clean:
rm -f $(objects)
.c.o:
- gcc -fPIC -c -Wall -o $@ $<
+ gcc $(CFLAGS) -fPIC -c -Wall -o $@ $<
$(sources): minitru-int.h
minitru-int.h: minitru.h
libminitru.so.0: $(sources:.c=.o)
- gcc -shared -Wl,-soname,$@ -o $@ $^ -lm
+ gcc $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^ -lm
_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg