[prev in list] [next in list] [prev in thread] [next in thread]
List: xine-devel
Subject: [xine-devel] [PATCH] Add optional parameter to toggle fullscreen
From: Andreas Auras <yak54 () gmx ! net>
Date: 2010-04-09 12:58:10
Message-ID: 201004091458.10103.yak54 () gmx ! net
[Download RAW message or body]
Hi,
The patch enhances the fullscreen command of the player with a optional
numeric parameter so that fullscreen mode could not only be toggled but
also switched on/off.
Andreas
["xine-ui-hg-patch-30c90801fb62" (text/plain)]
# HG changeset patch
# User Andreas Auras <yak54@gmx.net>
# Date 1270812726 -7200
# Node ID 30c90801fb62c684f6da63aa9a990f897d3460c9
# Parent c53b663ba9ae7e08a9e7293553590ee1a5fa2875
Add optional parameter to toggle fullscreen command
The patch enhances the fullscreen command of the player with a optional
numeric parameter so that fullscreen mode could not only be toggled but
also switched on/off.
diff -r c53b663ba9ae -r 30c90801fb62 src/xitk/event.c
--- a/src/xitk/event.c Fri Apr 09 13:20:26 2010 +0200
+++ b/src/xitk/event.c Fri Apr 09 13:32:06 2010 +0200
@@ -534,7 +534,12 @@
break;
case ACTID_TOGGLE_FULLSCREEN:
- gui_set_fullscreen_mode(NULL, NULL);
+ if (gGui->numeric.set) {
+ int fullscreen = video_window_get_fullscreen_mode() & FULLSCR_MODE;
+ if ((gGui->numeric.arg && !fullscreen) || (!gGui->numeric.arg && fullscreen))
+ gui_set_fullscreen_mode(NULL, NULL);
+ } else
+ gui_set_fullscreen_mode(NULL, NULL);
break;
#ifdef HAVE_XINERAMA
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
xine-devel mailing list
xine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic