wall.c: create properly sized (multiple of two each way) windows. set

correct output resolution on the created windows
parent 23fcdfe0
......@@ -247,9 +247,11 @@ static int Init( vout_thread_t *p_vout )
w1 = p_vout->output.i_width / p_vout->p_sys->i_col;
h1 = w1 * VOUT_ASPECT_FACTOR / i_aspect;
w1 &= ~1; h1 &= ~1;
h2 = p_vout->output.i_height / p_vout->p_sys->i_row;
w2 = h2 * i_aspect / VOUT_ASPECT_FACTOR;
w2 &= ~1; h2 &= ~1;
if ( h1 * p_vout->p_sys->i_row < p_vout->output.i_height )
{
......@@ -347,9 +349,7 @@ static int Init( vout_thread_t *p_vout )
p_vout->p_sys->pp_vout[ p_vout->p_sys->i_vout ].p_vout =
vout_Create( p_vout, i_width, i_height,
p_vout->render.i_chroma,
p_vout->render.i_aspect
* p_vout->render.i_height / i_height
* i_width / p_vout->render.i_width );
VOUT_ASPECT_FACTOR * i_width / i_height );
if( p_vout->p_sys->pp_vout[ p_vout->p_sys->i_vout ].p_vout == NULL )
{
msg_Err( p_vout, "failed to get %ix%i vout threads",
......
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