void blurt(dst_t *dst, int dst_step, src_t *src, int src_step,
int len, int radius, float s)
{
- if( radius > len ) radius = len;
+ int n = len/2-1;
+ if( radius > n ) radius = n;
const int length = radius*2 + 1;
const int inv = s * ((1<<16) + length/2)/length;
- int x, n, sum = src[radius*src_step];
+ int x, sum = src[radius*src_step];
for( x=0; x<radius; ++x )
sum += src[x*src_step]<<1;
UTILS = $(OBJDIR)/bootstrap $(OBJDIR)/pngtoh $(OBJDIR)/pngtoraw
BCXFER = xfer/$(OBJDIR)/xfer.stamp
-CFLAGS += -I/usr/include/freetype2
+CFLAGS += $(static_incs)
$(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
$(shell echo $(OBJS) > $(OBJDIR)/objs)
delete title_x;
delete title_y;
delete title_w;
- delete title_y;
+ delete title_h;
}
void TitleWindow::create_objects()
title_y->update((int64_t)client->config.title_y);
title_w->update((int64_t)client->config.title_w);
title_h->update((int64_t)client->config.title_h);
+ drag->drag_x = client->config.title_x;
+ drag->drag_y = client->config.title_y;
+ drag->drag_w = client->config.title_w;
+ drag->drag_h = client->config.title_h;
italic->update(client->config.style & BC_FONT_ITALIC);
bold->update(client->config.style & BC_FONT_BOLD);
alias->update(client->config.style & FONT_ALIAS);
tiff.cfg_vars+=LIBS+=" -lpthread"
tiff.cfg_params+= --enable-shared=no --disable-zstd $(call if_pkg,libwebp,\
--with-webp-include-dir=$(call pkg_incl,libwebp)\
- --with-webp-lib-dir=$(call pkg_libs,libwebp))
+ --with-webp-lib-dir=$(call pkg_libs,libwebp))\
+ $(call if_npkg,libwebp,--disable-webp)
twolame.cfg_params?=--enable-shared=no
x264.cfg_params?= --enable-static --enable-pic
x265.cfg_vars?=$(call cmake_config,source)