[MPlayer-cvslog] r29795 - trunk/libvo/x11_common.c
diego
subversion at mplayerhq.hu
Sat Oct 24 14:35:19 CEST 2009
Author: diego
Date: Sat Oct 24 14:35:18 2009
New Revision: 29795
Log:
Move some variable initializations to the beginning of vo_x11_fullscreen().
Fixes the warnings:
libvo/x11_common.c:1344: warning: 'h' may be used uninitialized in this function
libvo/x11_common.c:1344: warning: 'w' may be used uninitialized in this function
libvo/x11_common.c:1344: warning: 'y' may be used uninitialized in this function
libvo/x11_common.c:1344: warning: 'x' may be used uninitialized in this function
Modified:
trunk/libvo/x11_common.c
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c Fri Oct 23 20:26:42 2009 (r29794)
+++ trunk/libvo/x11_common.c Sat Oct 24 14:35:18 2009 (r29795)
@@ -1342,6 +1342,10 @@ int vo_x11_update_geometry(void) {
void vo_x11_fullscreen(void)
{
int x, y, w, h;
+ x = vo_old_x;
+ y = vo_old_y;
+ w = vo_old_width;
+ h = vo_old_height;
if (WinID >= 0) {
vo_fs = !vo_fs;
@@ -1352,15 +1356,6 @@ void vo_x11_fullscreen(void)
if (vo_fs)
{
- // fs->win
- if ( ! (vo_fs_type & vo_wm_FULLSCREEN) ) // not needed with EWMH fs
- {
- x = vo_old_x;
- y = vo_old_y;
- w = vo_old_width;
- h = vo_old_height;
- }
-
vo_x11_ewmh_fullscreen(_NET_WM_STATE_REMOVE); // removes fullscreen state if wm supports EWMH
vo_fs = VO_FALSE;
} else
More information about the MPlayer-cvslog
mailing list