[Mplayer-cvslog] CVS: main/libvo vo_quartz.c,1.31,1.32
Nicolas Plourde CVS
syncmail at mplayerhq.hu
Thu Oct 28 16:52:50 CEST 2004
- Previous message: [Mplayer-cvslog] CVS: main/libvo aclib.c, 1.13, 1.14 aspect.c, 1.16, 1.17 fastmemcpy.h, 1.20, 1.21 font_load_ft.c, 1.14, 1.15 geometry.c, 1.12, 1.13 img_format.h, 1.6, 1.7 jpeg_enc.c, 1.21, 1.22 mga_common.c, 1.59, 1.60 osd.c, 1.23, 1.24 sub.c, 1.75, 1.76 sub.h, 1.28, 1.29 vesa_lvo.c, 1.17, 1.18 video_out.c, 1.93, 1.94 video_out.h, 1.58, 1.59 video_out_internal.h, 1.14, 1.15 vo_aa.c, 1.43, 1.44 vo_bl.c, 1.7, 1.8 vo_cvidix.c, 1.11, 1.12 vo_dfbmga.c, 1.22, 1.23 vo_dga.c, 1.69, 1.70 vo_directfb.c, 1.28, 1.29 vo_directfb2.c, 1.16, 1.17 vo_directx.c, 1.40, 1.41 vo_dxr3.c, 1.121, 1.122 vo_ggi.c, 1.30, 1.31 vo_gl2.c, 1.54, 1.55 vo_quartz.c, 1.30, 1.31 vo_sdl.c, 1.116, 1.117 vo_svga.c, 1.74, 1.75 vo_winvidix.c, 1.4, 1.5 vo_x11.c, 1.140, 1.141 vo_xmga.c, 1.89, 1.90 vo_xover.c, 1.9, 1.10 vo_xv.c, 1.155, 1.156 vo_xvidix.c, 1.69, 1.70 vo_xvmc.c, 1.12, 1.13 vo_yuv4mpeg.c, 1.16, 1.17 vo_zr.c, 1.28, 1.29 vo_zr2.c, 1.4, 1.5 vosub_vidix.c, 1.63, 1.64 vosub_vidix.h, 1.11, 1.12 w32_common.c, 1.6, 1.7 x11_common.c, 1.176, 1.177
- Next message: [Mplayer-cvslog] CVS: main/libvo vo_quartz.c,1.32,1.33
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Nicolas Plourde CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv12382/libvo
Modified Files:
vo_quartz.c
Log Message:
let you choose fullscreen resolution for slower system
Index: vo_quartz.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_quartz.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- vo_quartz.c 28 Oct 2004 01:15:52 -0000 1.31
+++ vo_quartz.c 28 Oct 2004 14:52:47 -0000 1.32
@@ -87,6 +87,9 @@
static int device_height;
static int device_id;
+static short fs_res_x=0;
+static short fs_res_y=0;
+
static WindowRef theWindow = NULL;
static WindowGroupRef winGroup = NULL;
static CGContextRef context;
@@ -928,6 +931,13 @@
parse_pos = &parse_pos[10];
device_id = strtol(parse_pos, &parse_pos, 0);
}
+ if (strncmp (parse_pos, "fs_res=", 7) == 0)
+ {
+ parse_pos = &parse_pos[7];
+ fs_res_x = strtol(parse_pos, &parse_pos, 0);
+ parse_pos = &parse_pos[1];
+ fs_res_y = strtol(parse_pos, &parse_pos, 0);
+ }
if (parse_pos[0] == ':') parse_pos = &parse_pos[1];
else if (parse_pos[0]) parse_err = 1;
}
@@ -1135,6 +1145,8 @@
void window_ontop()
{
+ if(!vo_quartz_fs)
+ {
//Cycle between level
winLevel++;
if(winLevel>2)
@@ -1155,11 +1167,16 @@
}
}
+ }
SetWindowGroupLevel(winGroup, CGWindowLevelForKey(levelList[winLevel]));
}
void window_fullscreen()
{
+ static Ptr restoreState = NULL;
+ RGBColor black={0,0,0};
+ GDHandle deviceHdl;
+
//go fullscreen
if(vo_fs)
{
@@ -1167,6 +1184,18 @@
{
HideMenuBar();
HideCursor();
+
+ if(fs_res_x != 0 || fs_res_y != 0)
+ {
+ BeginFullScreen( &restoreState, NULL, &fs_res_x, &fs_res_y, NULL, &black, NULL);
+
+ //Get Main device info///////////////////////////////////////////////////
+ deviceHdl = GetMainDevice();
+ deviceRect = (*deviceHdl)->gdRect;
+
+ device_width = deviceRect.right;
+ device_height = deviceRect.bottom;
+ }
}
//save old window size
@@ -1183,6 +1212,18 @@
}
else //go back to windowed mode
{
+ if(restoreState != NULL)
+ {
+ EndFullScreen(restoreState, NULL);
+
+ //Get Main device info///////////////////////////////////////////////////
+ deviceHdl = GetMainDevice();
+ deviceRect = (*deviceHdl)->gdRect;
+
+ device_width = deviceRect.right;
+ device_height = deviceRect.bottom;
+ restoreState = NULL;
+ }
ShowMenuBar();
//show mouse cursor
- Previous message: [Mplayer-cvslog] CVS: main/libvo aclib.c, 1.13, 1.14 aspect.c, 1.16, 1.17 fastmemcpy.h, 1.20, 1.21 font_load_ft.c, 1.14, 1.15 geometry.c, 1.12, 1.13 img_format.h, 1.6, 1.7 jpeg_enc.c, 1.21, 1.22 mga_common.c, 1.59, 1.60 osd.c, 1.23, 1.24 sub.c, 1.75, 1.76 sub.h, 1.28, 1.29 vesa_lvo.c, 1.17, 1.18 video_out.c, 1.93, 1.94 video_out.h, 1.58, 1.59 video_out_internal.h, 1.14, 1.15 vo_aa.c, 1.43, 1.44 vo_bl.c, 1.7, 1.8 vo_cvidix.c, 1.11, 1.12 vo_dfbmga.c, 1.22, 1.23 vo_dga.c, 1.69, 1.70 vo_directfb.c, 1.28, 1.29 vo_directfb2.c, 1.16, 1.17 vo_directx.c, 1.40, 1.41 vo_dxr3.c, 1.121, 1.122 vo_ggi.c, 1.30, 1.31 vo_gl2.c, 1.54, 1.55 vo_quartz.c, 1.30, 1.31 vo_sdl.c, 1.116, 1.117 vo_svga.c, 1.74, 1.75 vo_winvidix.c, 1.4, 1.5 vo_x11.c, 1.140, 1.141 vo_xmga.c, 1.89, 1.90 vo_xover.c, 1.9, 1.10 vo_xv.c, 1.155, 1.156 vo_xvidix.c, 1.69, 1.70 vo_xvmc.c, 1.12, 1.13 vo_yuv4mpeg.c, 1.16, 1.17 vo_zr.c, 1.28, 1.29 vo_zr2.c, 1.4, 1.5 vosub_vidix.c, 1.63, 1.64 vosub_vidix.h, 1.11, 1.12 w32_common.c, 1.6, 1.7 x11_common.c, 1.176, 1.177
- Next message: [Mplayer-cvslog] CVS: main/libvo vo_quartz.c,1.32,1.33
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list