(Xvideo) Style nits

This commit is contained in:
twinaphex 2015-04-09 04:15:37 +02:00
parent 2aebce1174
commit 8b2c8bae19

View File

@ -687,7 +687,8 @@ static void xv_render_msg(xv_t *xv, const char *msg,
glyph_width = glyph->width;
glyph_height = glyph->height;
src = atlas->buffer + glyph->atlas_offset_x + glyph->atlas_offset_y * atlas->width;
src = atlas->buffer + glyph->atlas_offset_x +
glyph->atlas_offset_y * atlas->width;
if (base_x < 0)
{
@ -726,11 +727,10 @@ static void xv_render_msg(xv_t *xv, const char *msg,
int out_x = x << 1;
alpha[0] = src[x + 0];
alpha[1] = 0;
if (x + 1 < glyph_width)
alpha[1] = src[x + 1];
else
alpha[1] = 0;
/* Blended alpha for the sub-sampled U/V channels. */
alpha_sub = (alpha[0] + alpha[1]) >> 1;