>From 4f6e4abd366f638683d3357de0fc1a9a438b50e6 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh78@gmail.com>
Date: Sun, 6 Apr 2014 11:53:26 +0000
Subject: [PATCH] kva: support ZOOM

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 2eada01e3db17b930bc27c57c4aa8987e4400a4e)

Signed-off-by: KO Myung-Hun <komh@chollian.net>
---
 modules/video_output/kva.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index df45eca..ad1c3de 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -495,9 +495,11 @@ static int Control( vout_display_t *vd, int query, va_list args )
     }
 
     case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
+    case VOUT_DISPLAY_CHANGE_ZOOM:
     {
         const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *);
-        bool  is_forced = va_arg(args, int);
+        bool  is_forced = query == VOUT_DISPLAY_CHANGE_ZOOM ||
+                          va_arg(args, int);
 
         if( is_forced )
         {
@@ -543,7 +545,6 @@ static int Control( vout_display_t *vd, int query, va_list args )
 
     case VOUT_DISPLAY_RESET_PICTURES:
     case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
-    case VOUT_DISPLAY_CHANGE_ZOOM:
     case VOUT_DISPLAY_GET_OPENGL:
         /* TODO */
         break;
-- 
1.7.3.2

