apps/graphics/ft80x: Fix an incorrect size adjustment.

This commit is contained in:
Gregory Nutt 2018-02-25 18:39:39 -06:00
parent cccac4932b
commit 621f2f5e83
3 changed files with 5 additions and 5 deletions

View File

@ -288,9 +288,10 @@ int ft80x_audio_playfile(int fd, FAR struct ft80x_dlbuffer_s *buffer,
while (freespace < MAX_DLBUFFER || freespace < remaining);
}
/* Mute the sound clearing buffer.
/* Mute the sound clearing by clearing RAM_G after the current offset.
*
* REVISIT: There is an ugly hack into the display list logic in the
* following 8(
* following 8( I also suspect that the logic is not even correct.
*/
memset.cmd = FT80X_CMD_MEMSET;

View File

@ -165,9 +165,8 @@ int ft80x_ramcmd_append(int fd, FAR struct ft80x_dlbuffer_s *buffer,
}
}
/* Set up for the next time through the loop */
/* Set up for the next time through the loop. */
buffer->dlsize += wrsize;
remaining -= wrsize;
src += wrsize;
}