From: GetAway Date: Thu, 12 Oct 2017 13:19:48 +0000 (+0200) Subject: tuxwetter: use OFFSET_MIN for better bg detection X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=f2853c72ffa0ef0d5e7e5137fa17814cbd3b8a50;p=tuxwetter.git tuxwetter: use OFFSET_MIN for better bg detection --- diff --git a/text.c b/text.c index 129ceae..4f3b608 100644 --- a/text.c +++ b/text.c @@ -280,7 +280,7 @@ int RenderChar(FT_ULong currentchar, int _sx, int _sy, int _ex, int color) if (_sx + sbit->xadvance >= _ex) return -1; /* limit to maxwidth */ - uint32_t bgcolor = *(lbb + (sy + _sy - _d - 1) * swidth + (sx + _sx + sbit->left)); + uint32_t bgcolor = *(lbb + (sy + _sy - _d - 1) * swidth + (sx + _sx + OFFSET_MIN + sbit->left)); uint32_t fgcolor = bgra[color]; uint32_t *colors = lookup_colors(fgcolor, bgcolor); uint32_t *p = lbb + (sx + _sx + sbit->left + kerning.x) + swidth * (sy + _sy - sbit->top - _d); diff --git a/tuxwetter.c b/tuxwetter.c index 9b41bae..413c892 100644 --- a/tuxwetter.c +++ b/tuxwetter.c @@ -44,7 +44,7 @@ #include "gifdecomp.h" #include "icons.h" -#define P_VERSION "4.10" +#define P_VERSION "4.11" #define S_VERSION ""