diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dxr3/video_out_dxr3.c | 14 | ||||
-rw-r--r-- | src/dxr3/video_out_dxr3.h | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/dxr3/video_out_dxr3.c b/src/dxr3/video_out_dxr3.c index 63d6db20f..9da93591b 100644 --- a/src/dxr3/video_out_dxr3.c +++ b/src/dxr3/video_out_dxr3.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_dxr3.c,v 1.56 2002/09/27 13:07:43 mroi Exp $ + * $Id: video_out_dxr3.c,v 1.57 2002/10/11 10:55:27 mroi Exp $ */ /* mpeg1 encoding video out plugin for the dxr3. @@ -1255,23 +1255,23 @@ static int dxr3_overlay_set_attributes(dxr3_overlay_t *this) static void dxr3_overlay_update(dxr3_driver_t *this) { if (this->overlay_enabled) { - int width; + double video_aspect, gui_aspect; int gui_win_x, gui_win_y, win_off_x, win_off_y, gui_width, gui_height; switch (this->aspect) { case ASPECT_FULL: - width = this->video_oheight * 4 / 3; + video_aspect = 4 / 3; break; case ASPECT_ANAMORPHIC: - width = this->video_oheight * 16 / 9; + video_aspect = 16 / 9; break; default: - width = this->video_width; + video_aspect = 4 / 3; } this->frame_output_cb(this->user_data, - width, this->video_oheight, - &win_off_x, &win_off_y, &gui_width, &gui_height, &gui_win_x, &gui_win_y); + this->video_width, this->video_oheight, video_aspect, + &win_off_x, &win_off_y, &gui_width, &gui_height, &gui_aspect, &gui_win_x, &gui_win_y); if (this->xpos != (gui_win_x + win_off_x) || this->ypos != (gui_win_y + win_off_y) || diff --git a/src/dxr3/video_out_dxr3.h b/src/dxr3/video_out_dxr3.h index 733be297f..17507bcf5 100644 --- a/src/dxr3/video_out_dxr3.h +++ b/src/dxr3/video_out_dxr3.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_dxr3.h,v 1.10 2002/09/05 12:52:24 mroi Exp $ + * $Id: video_out_dxr3.h,v 1.11 2002/10/11 10:55:28 mroi Exp $ */ #ifdef HAVE_CONFIG_H @@ -115,8 +115,10 @@ typedef struct dxr3_driver_s { char *user_data; void (*frame_output_cb)(void *user_data, int video_width, int video_height, + double video_pixel_aspect, int *dest_x, int *dest_y, int *dest_height, int *dest_width, + double *dest_pixel_aspect, int *win_x, int *win_y); } dxr3_driver_t; |