minor fix
This commit is contained in:
parent
d8fda17495
commit
35b2305b62
1 changed files with 10 additions and 12 deletions
|
@ -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"
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) :
|
||||||
void MoveCmd::real_execute() {
|
void MoveCmd::real_execute() {
|
||||||
fbwindow().move(
|
fbwindow().move(
|
||||||
fbwindow().x() + m_step_size_x,
|
fbwindow().x() + m_step_size_x,
|
||||||
fbwindow().y() + m_step_size_y );
|
fbwindow().y() + m_step_size_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
|
ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
|
||||||
|
@ -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 );
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue