minor style adaptions
This commit is contained in:
parent
8606d72ced
commit
036d77fffe
7
sent.c
7
sent.c
@ -472,13 +472,14 @@ void xdraw()
|
|||||||
drw_rect(d, 0, 0, xw.w, xw.h, 1, 1);
|
drw_rect(d, 0, 0, xw.w, xw.h, 1, 1);
|
||||||
drw_text(d, (xw.w - width) / 2, (xw.h - height) / 2, width, height, slides[idx].text, 0);
|
drw_text(d, (xw.w - width) / 2, (xw.h - height) / 2, width, height, slides[idx].text, 0);
|
||||||
drw_map(d, xw.win, 0, 0, xw.w, xw.h);
|
drw_map(d, xw.win, 0, 0, xw.w, xw.h);
|
||||||
} else if (!(im->state & LOADED) && !pngread(im))
|
} else if (!(im->state & LOADED) && !pngread(im)) {
|
||||||
eprintf("could not read image %s", slides[idx].text + 1);
|
eprintf("could not read image %s", slides[idx].text + 1);
|
||||||
else if (!(im->state & SCALED) && !pngprepare(im))
|
} else if (!(im->state & SCALED) && !pngprepare(im)) {
|
||||||
eprintf("could not prepare image %s for drawing", slides[idx].text + 1);
|
eprintf("could not prepare image %s for drawing", slides[idx].text + 1);
|
||||||
else if (!(im->state & DRAWN))
|
} else if (!(im->state & DRAWN)) {
|
||||||
pngdraw(im);
|
pngdraw(im);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void xhints()
|
void xhints()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user