From: Joachim K. <joa...@us...> - 2001-11-09 14:10:18
|
Update of /cvsroot/xine/xine-lib/src/video_out In directory usw-pr-cvs1:/tmp/cvs-serv31080 Modified Files: video_out_syncfb.c Log Message: fb_screen_size correction Index: video_out_syncfb.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_syncfb.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- video_out_syncfb.c 2001/11/07 23:01:03 1.42 +++ video_out_syncfb.c 2001/11/09 14:10:15 1.43 @@ -365,6 +365,8 @@ this->output_xoffset = dest_x + (dest_width - this->output_width) / 2; this->output_yoffset = dest_y; } + this->output_width = (this->output_width + 1) & 0xfffe; /* Round to even */ + this->output_height = (this->output_height + 1) & 0xfffe; /* Round to even */ // try to minimize our config ioctls by checking if anything really has // changed, otherwise leave things untouched because every config ioctl @@ -427,7 +429,7 @@ break; } - this->syncfb_config.fb_screen_size = this->virtual_screen_width * this->virtual_screen_height * (this->screen_depth / 8); + this->syncfb_config.fb_screen_size = this->virtual_screen_width * this->virtual_screen_height * (this->screen_depth / 8) * 2; this->syncfb_config.src_width = this->frame_width; this->syncfb_config.src_height = this->frame_height; @@ -469,7 +471,7 @@ this->output_xoffset+this->output_width, dest_y, dest_width - this->output_xoffset - this->output_width, dest_height); - + XUnlockDisplay (this->display); } @@ -558,7 +560,6 @@ ideal_width *=2; ideal_height *=2; } - /* * ask gui to adapt to this size */ |