issue #1941 bdfconv update

This commit is contained in:
kraus 2022-09-02 22:52:54 +02:00
parent 8d758e8e30
commit 5fb0573e5e
1 changed files with 2 additions and 2 deletions

View File

@ -339,13 +339,13 @@ static int bg_01_rle(bg_t *bg, unsigned a, unsigned b)
static int bg_prepare_01_rle(bg_t *bg, unsigned a, unsigned b)
{
//printf("[%u %u]", a, b);
while( a >= (1<<bg->rle_bits_per_0) -1 )
while( a > (1<<bg->rle_bits_per_0) -1 )
{
if ( bg_01_rle(bg, (1<<bg->rle_bits_per_0) -1, 0) == 0 )
return 0;
a -= (1<<bg->rle_bits_per_0) -1;
}
while( b >= (1<<bg->rle_bits_per_1) -1 )
while( b > (1<<bg->rle_bits_per_1) -1 )
{
if ( bg_01_rle(bg, a, (1<<bg->rle_bits_per_1) -1) == 0 )
return 0;