summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_sdl.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-26 01:03:31 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-26 01:03:31 +0000
commitf7c890258f736dc45ae81e2097df6c9658e93606 (patch)
treeeed0d30d99ebbdc649d7fb20329ec2911357b877 /src/video_out/video_out_sdl.c
parent1daacd9d5b53cac2671d2bd9c93a3daa629254ea (diff)
downloadxine-lib-f7c890258f736dc45ae81e2097df6c9658e93606.tar.gz
xine-lib-f7c890258f736dc45ae81e2097df6c9658e93606.tar.bz2
* new unscaled overlay feature (using XShape extension)
text subtitles may now be rendered at full screen resolution * load xine fonts on demand - faster startup note: support added to xv, xshm and vidix CVS patchset: 5780 CVS date: 2003/11/26 01:03:31
Diffstat (limited to 'src/video_out/video_out_sdl.c')
-rw-r--r--src/video_out/video_out_sdl.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/video_out/video_out_sdl.c b/src/video_out/video_out_sdl.c
index 3711855d4..18c9c962d 100644
--- a/src/video_out/video_out_sdl.c
+++ b/src/video_out/video_out_sdl.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_sdl.c,v 1.31 2003/11/11 18:45:00 f1rmb Exp $
+ * $Id: video_out_sdl.c,v 1.32 2003/11/26 01:03:32 miguelfreitas Exp $
*
* video_out_sdl.c, Simple DirectMedia Layer
*
@@ -355,10 +355,15 @@ static void sdl_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) {
static int sdl_get_property (vo_driver_t *this_gen, int property) {
sdl_driver_t *this = (sdl_driver_t *) this_gen;
-
- if ( property == VO_PROP_ASPECT_RATIO)
- return this->sc.user_ratio ;
-
+
+ switch (property) {
+ case VO_PROP_WINDOW_WIDTH:
+ return this->sc.gui_width;
+ case VO_PROP_WINDOW_HEIGHT:
+ return this->sc.gui_height;
+ case VO_PROP_ASPECT_RATIO:
+ return this->sc.user_ratio;
+ }
return 0;
}