00001 /***************************************************************************** 00002 * cmd_resize.cpp 00003 ***************************************************************************** 00004 * Copyright (C) 2003 the VideoLAN team 00005 * $Id: cmd_resize.cpp 12955 2005-10-24 19:59:51Z asmax $ 00006 * 00007 * Authors: Cyril Deguet <[email protected]> 00008 * Olivier Teulière <[email protected]> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. 00023 *****************************************************************************/ 00024 00025 #include "cmd_resize.hpp" 00026 #include "../src/generic_layout.hpp" 00027 00028 00029 CmdResize::CmdResize( intf_thread_t *pIntf, GenericLayout &rLayout, int width, 00030 int height ): 00031 CmdGeneric( pIntf ), m_rLayout( rLayout ), m_width( width ), 00032 m_height( height ) 00033 { 00034 } 00035 00036 00037 void CmdResize::execute() 00038 { 00039 // Resize the layout 00040 m_rLayout.resize( m_width, m_height ); 00041 } 00042 00043 00044 CmdResizeVout::CmdResizeVout( intf_thread_t *pIntf, void *pWindow, int width, 00045 int height ): 00046 CmdGeneric( pIntf ), m_pWindow( pWindow ), m_width( width ), 00047 m_height( height ) 00048 { 00049 } 00050 00051 00052 void CmdResizeVout::execute() 00053 { 00054 // TODO 00055 msg_Dbg( getIntf(), "New vout size requested: %d x %d", m_width, 00056 m_height ); 00057 } 00058