better move whole line in scottie decoder

pull/6/head
Ahmet Inan 2014-12-10 23:42:50 +01:00
rodzic 56e75346d2
commit 40eb37a40d
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -150,9 +150,7 @@ static void scottie_decoder()
uchar b = value_blur(i * (b_end-b_begin) / bitmap_width + b_begin);
pixel_buffer[bitmap_width * vpos + i] = rgb(r, g, b);
}
for (int i = g_begin; i < g_end; ++i)
value_buffer[i] = value_buffer[i + prev_hpos];
for (int i = b_begin; i < b_end; ++i)
for (int i = 0; i < scanline_length; ++i)
value_buffer[i] = value_buffer[i + prev_hpos];
prev_hpos = scanline_length;
hpos = 0;