Correct Squish PMV Bug.

Fix Squish PMV bug.
Slight syntax issue in pec writer.
pull/105/head
tatarize 2020-11-12 11:33:38 -08:00 zatwierdzone przez GitHub
rodzic 42bb7d5a95
commit 1f3f73a545
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -51,7 +51,7 @@ def write_pec_header(pattern, f, threadlist):
rgb_list = [thread.color for thread in threadlist]
current_thread_count = len(color_index_list)
if current_thread_count is not 0:
if current_thread_count != 0:
f.write(b'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20')
add_value = current_thread_count - 1
color_index_list.insert(0, add_value)

Wyświetl plik

@ -91,7 +91,7 @@ def write(pattern, f, settings=None):
length_range = max_x - min_x
write_length_lookup_table(f, length_range)
width_range = max_y - min_y
write_width_lookup_table(f, width_range)
write_width_lookup_table(f, width_range * 2)
write_int_16le(f, 0x12)
f.write(b'\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00')