#include "pngw.h"
-#define SH_VERSION 2.13
+#define SH_VERSION 2.14
static char CFG_FILE[128]="/var/tuxbox/config/shellexec.conf";
if(ccenter)
{
stlen=GetStringLen(xoffs, dstr, MED);
- RenderBox(xoffs+(ixw-xoffs-sbw)/2-stlen/2, my+soffs-ldy, xoffs+(ixw-xoffs-sbw)/2+stlen/2+3*OFFSET_SMALL/*15*/, my+soffs, FILL, CMC);
+ RenderBox(xoffs+(ixw-xoffs-sbw)/2-stlen/2, my+soffs-ldy, xoffs+(ixw-xoffs-sbw)/2+stlen/2+3*OFFSET_SMALL, my+soffs, FILL, CMC);
RenderString(dstr, xoffs, my+soffs-(dy-FSIZE_MED)/2, ixw-sbw, CENTER, MED, CMCIT);
}
}
if (_sx + sbit->xadvance >= _ex)
return -1; /* limit to maxwidth */
- uint32_t bgcolor = *(lbb + (starty + _sy - _d - 1) * swidth + (startx + _sx + sbit->left));
+ uint32_t bgcolor = *(lbb + (starty + _sy - _d - 1) * swidth + (startx + _sx + OFFSET_MIN + sbit->left));
uint32_t fgcolor = bgra[color];
uint32_t *colors = lookup_colors(fgcolor, bgcolor);
uint32_t *p = lbb + (startx + _sx + sbit->left + kerning.x) + swidth * (starty + _sy - sbit->top - _d);