comparison ui.c @ 659:fc19ab0334b1

Match th-libs API changes for ringbuffers.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Feb 2015 01:40:29 +0200
parents 5269a8cdbd96
children f212cbfbd93c
comparison
equal deleted inserted replaced
658:04aabecd922a 659:fc19ab0334b1
354 354
355 // Check if update is forced or if the window is dirty 355 // Check if update is forced or if the window is dirty
356 if (currWin != NULL && (force || currWin->dirty)) 356 if (currWin != NULL && (force || currWin->dirty))
357 { 357 {
358 int y, offs; 358 int y, offs;
359 qringbuf_t *buf = currWin->data; 359 th_ringbuf_t *buf = currWin->data;
360 360
361 changed = TRUE; 361 changed = TRUE;
362 362
363 for (y = scrHeight - 4, offs = buf->size - 1 - currWin->pos; offs >= 0 && y > 0; offs--) 363 for (y = scrHeight - 4, offs = buf->size - 1 - currWin->pos; offs >= 0 && y > 0; offs--)
364 { 364 {