diff options
-rw-r--r-- | src/dxr3/dxr3_video_out.h | 3 | ||||
-rw-r--r-- | src/dxr3/dxr3_vo_core.c | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/dxr3/dxr3_video_out.h b/src/dxr3/dxr3_video_out.h index 12b545e3b..9a956e2f3 100644 --- a/src/dxr3/dxr3_video_out.h +++ b/src/dxr3/dxr3_video_out.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: dxr3_video_out.h,v 1.7 2001/11/25 20:21:25 hrm Exp $ + * $Id: dxr3_video_out.h,v 1.8 2001/11/29 07:17:07 mlampard Exp $ * */ @@ -106,6 +106,7 @@ typedef struct dxr3_driver_s { int width, height; int overlay_enabled; int tv_switchable; /* can switch from overlay<->tvout */ + int fullscreen_rectangle; float desired_ratio; int zoom_enabled; /* zoomed 16:9 mode */ diff --git a/src/dxr3/dxr3_vo_core.c b/src/dxr3/dxr3_vo_core.c index c7593307e..0c218f130 100644 --- a/src/dxr3/dxr3_vo_core.c +++ b/src/dxr3/dxr3_vo_core.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: dxr3_vo_core.c,v 1.10 2001/11/19 17:07:15 mlampard Exp $ + * $Id: dxr3_vo_core.c,v 1.11 2001/11/29 07:17:08 mlampard Exp $ * ************************************************************************* * core functions common to both Standard and RT-Encoding vo plugins * @@ -107,6 +107,8 @@ void dxr3_read_config(dxr3_driver_t *this) this->bcs.saturation = config->register_range(config, "dxr3.saturation", this->bcs.saturation,100,900,"Dxr3: saturation control",NULL,NULL,NULL); this->bcs.brightness = config->register_range(config, "dxr3.brightness", this->bcs.brightness,100,900,"Dxr3: brightness control",NULL,NULL,NULL); + this->fullscreen_rectangle = config->register_bool(config, "dxr3.fullscreen_rectangle",0,"Dxr3: Fullscreen Rectangle Mode",NULL,NULL,NULL); + this->vo_driver.set_property(&this->vo_driver, VO_PROP_ASPECT_RATIO, ASPECT_FULL); @@ -399,6 +401,11 @@ int dxr3_gui_data_exchange (vo_driver_t *this_gen, case GUI_DATA_EX_DEST_POS_SIZE_CHANGED:{ x11_rectangle_t *area = (x11_rectangle_t*) data; dxr3_overlay_adapt_area(this, area->x, area->y, area->w, area->h); + + if(is_fullscreen(this) && this->fullscreen_rectangle) + dxr3_overlay_set_mode(&this->overlay,EM8300_OVERLAY_MODE_RECTANGLE); + else if (this->fullscreen_rectangle) + dxr3_overlay_set_mode(&this->overlay,EM8300_OVERLAY_MODE_OVERLAY); } break; case GUI_DATA_EX_EXPOSE_EVENT:{ |