diff --git a/ubb-la/gui.c b/ubb-la/gui.c index 0743e97..1f90294 100644 --- a/ubb-la/gui.c +++ b/ubb-la/gui.c @@ -232,7 +232,7 @@ static void show_buffer_zoom_in(const uint8_t *buf, int skip, int nibbles, int last[4] = { -1, -1, -1, -1}; uint8_t v, bit; - DEBUG("in: %d-%d (%d) Sa %d-%d (%d) pix %d f (%d)\n", + DEBUG("in: %d-%d (%d) Sa; %d-%d (%d) pix; %d f (%d)\n", skip, nibbles, nibbles-skip, x0, x1, x1-x0, f, f*(nibbles-skip)); x = x0; for (i = skip; i != nibbles; i++) { @@ -261,7 +261,7 @@ static void show_buffer_zoom_out(const uint8_t *buf, int skip, int nibbles, int changes[4], last[4] = { -1, -1, -1, -1}, next[4]; uint8_t v, bit; - DEBUG("out: %d-%d (%d) Sa %d-%d (%d) pix %d f (%d)\n", + DEBUG("out: %d-%d (%d) Sa; %d-%d (%d) pix; %d f (%d)\n", skip, nibbles, nibbles-skip, x0, x1, x1-x0, f, f*(x1-x0)); for (x = x0; x != x1; x++) { n = i+f; @@ -301,6 +301,8 @@ static void show_buffer(const uint8_t *buf, int skip, int nibbles, xm = (x0+x1) >> 1; dp = pos-((nibbles+skip) >> 1); + DEBUG("show: %d-%d Sa; %d-%d pix; pos %d dp %d; xm %d xcenter %d\n", + skip, nibbles, x0, x1, pos, dp, xm, XCENTER); if (zoom < 0) { s = (x1-x0) << -zoom; show_map(skip, nibbles, pos-s/2, pos+s/2);