diff options
Diffstat (limited to 'sent/slide_numbers.patch')
-rw-r--r-- | sent/slide_numbers.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sent/slide_numbers.patch b/sent/slide_numbers.patch index 51fa876..7e94fd5 100644 --- a/sent/slide_numbers.patch +++ b/sent/slide_numbers.patch @@ -22,7 +22,7 @@ diff '--color=auto' --unified --recursive --text src.orig/sent.c src.new/sent.c - unsigned int height, width, i; + unsigned int height, width, i, numw; Image *im = slides[idx].img; -+ char num[12] = {0}; ++ char num[27] = {0}; getfontsize(&slides[idx], &width, &height); XClearWindow(xw.dpy, xw.win); @@ -31,7 +31,7 @@ diff '--color=auto' --unified --recursive --text src.orig/sent.c src.new/sent.c slides[idx].lines[i], 0); + if (idx >= 0) { -+ snprintf(num, 12, "%d", idx + 1); ++ snprintf(num, 27, "%d / %d", idx + 1, slidecount); + drw_setfontset(d, fonts[SLIDENUMBERSCALE]); + numw = drw_fontset_getwidth(d, num); + drw_text(d, |