Commit 60136a07 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: tx3g: encode bottom/center alignment

parent 488e6712
...@@ -556,6 +556,8 @@ static void FillExtradataTx3g( void **pp_extra, int *pi_extra ) ...@@ -556,6 +556,8 @@ static void FillExtradataTx3g( void **pp_extra, int *pi_extra )
uint8_t *p_extra = calloc( 1, i_extra ); uint8_t *p_extra = calloc( 1, i_extra );
if( p_extra ) if( p_extra )
{ {
p_extra[4] = 0x01;/* 1 center, horizontal */
p_extra[5] = 0xFF;/* -1 bottom, vertical */
SetDWBE( &p_extra[6], 0x000000FFU ); /* bgcolor */ SetDWBE( &p_extra[6], 0x000000FFU ); /* bgcolor */
p_extra[25] = STYLE_DEFAULT_FONT_SIZE; p_extra[25] = STYLE_DEFAULT_FONT_SIZE;
SetDWBE( &p_extra[26], 0xFFFFFFFFU ); /* fgcolor */ SetDWBE( &p_extra[26], 0xFFFFFFFFU ); /* fgcolor */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment