minor fix

This commit is contained in:
fluxgen 2003-10-26 12:36:55 +00:00
parent d8fda17495
commit 35b2305b62

View file

@ -20,7 +20,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: CurrentWindowCmd.cc,v 1.7 2003/10/25 22:11:22 fluxgen Exp $ // $Id: CurrentWindowCmd.cc,v 1.8 2003/10/26 12:36:55 fluxgen Exp $
#include "CurrentWindowCmd.hh" #include "CurrentWindowCmd.hh"
@ -77,24 +77,22 @@ ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
void ResizeCmd::real_execute() { void ResizeCmd::real_execute() {
fbwindow().resize( fbwindow().resize(
fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc, fbwindow().width() +
fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc ); m_step_size_x * fbwindow().winClient().width_inc,
fbwindow().height() +
m_step_size_y * fbwindow().winClient().height_inc);
} }
MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) : MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) :
m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
void MoveToCmd::real_execute() { void MoveToCmd::real_execute() {
fbwindow().move( fbwindow().move(m_step_size_x, m_step_size_y);
m_step_size_x,
m_step_size_y );
} }
ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) : ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) :
m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
void ResizeToCmd::real_execute() { void ResizeToCmd::real_execute() {
fbwindow().resize( fbwindow().resize(m_step_size_x, m_step_size_y);
m_step_size_x * fbwindow().winClient().width_inc,
m_step_size_y * fbwindow().winClient().height_inc );
} }