mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-06 23:03:43 +00:00
do correct sync extrapolation
This commit is contained in:
parent
a69b4089f5
commit
63e949332d
1 changed files with 7 additions and 6 deletions
|
|
@ -186,6 +186,13 @@ void decode(int samples) {
|
|||
seperator_counter = 0;
|
||||
continue;
|
||||
}
|
||||
if (hpos >= maximum_length) {
|
||||
hpos -= scanline_length;
|
||||
prev_sync_pos = sync_pos;
|
||||
sync_pos += scanline_length;
|
||||
} else {
|
||||
hpos = buffer_pos - sync_pos;
|
||||
}
|
||||
switch (current_decoder) {
|
||||
case decoder_robot36:
|
||||
robot36_decoder();
|
||||
|
|
@ -202,12 +209,6 @@ void decode(int samples) {
|
|||
default:
|
||||
raw_decoder();
|
||||
}
|
||||
if (hpos >= maximum_length) {
|
||||
hpos -= scanline_length;
|
||||
sync_pos = prev_sync_pos + scanline_length;
|
||||
} else {
|
||||
hpos = buffer_pos - sync_pos;
|
||||
}
|
||||
++vpos;
|
||||
if (vpos == bitmap_height)
|
||||
save_buffer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue