summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-01-24 13:05:05 +0000
committerphintuka <phintuka>2007-01-24 13:05:05 +0000
commit54be080eebe47ac47f0209089e9f5ba26dba2009 (patch)
tree1417258588947a956e66b488312dee91b662576c
parent227fd6a299dc067a625a571995ffa298f6dad1c3 (diff)
downloadxineliboutput-54be080eebe47ac47f0209089e9f5ba26dba2009.tar.gz
xineliboutput-54be080eebe47ac47f0209089e9f5ba26dba2009.tar.bz2
Shortcut keys for toggling fullscreen and deinterlace
-rw-r--r--xine_frontend_main.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/xine_frontend_main.c b/xine_frontend_main.c
index f34a78f8..96c70a09 100644
--- a/xine_frontend_main.c
+++ b/xine_frontend_main.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend_main.c,v 1.23 2007-01-22 22:59:16 phintuka Exp $
+ * $Id: xine_frontend_main.c,v 1.24 2007-01-24 13:05:05 phintuka Exp $
*
*/
@@ -148,6 +148,24 @@ static void *kbd_receiver_thread(void *fe)
terminate_key_pressed = 1;
break;
}
+#ifdef XINELIBOUTPUT_FE_TOGGLE_FULLSCREEN
+# ifndef IS_FBFE
+ if(code == 'f' || code == 'F') {
+ fe_t *this = (fe_t*)fe;
+ this->fe.fe_display_config((frontend_t *)fe, this->origwidth, this->origheight,
+ this->fullscreen ? 0 : 1,
+ this->vmode_switch, this->modeline,
+ this->aspect, this->scale_video, this->field_order);
+ continue;
+ } else
+# endif
+ if(code == 'd' || code == 'D') {
+ fe_t *this = (fe_t*)fe;
+ xine_set_param(this->stream, XINE_PARAM_VO_DEINTERLACE,
+ xine_get_param(this->stream, XINE_PARAM_VO_DEINTERLACE) ? 0 : 1);
+ continue;
+ } else
+#endif
if(code == 0xffff)
break;