diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CurrentWindowCmd.cc | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index 37e4782..4320f73 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: CurrentWindowCmd.cc,v 1.7 2003/10/25 22:11:22 fluxgen Exp $ | 23 | // $Id: CurrentWindowCmd.cc,v 1.8 2003/10/26 12:36:55 fluxgen Exp $ |
24 | 24 | ||
25 | #include "CurrentWindowCmd.hh" | 25 | #include "CurrentWindowCmd.hh" |
26 | 26 | ||
@@ -69,7 +69,7 @@ MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) : | |||
69 | void MoveCmd::real_execute() { | 69 | void MoveCmd::real_execute() { |
70 | fbwindow().move( | 70 | fbwindow().move( |
71 | fbwindow().x() + m_step_size_x, | 71 | fbwindow().x() + m_step_size_x, |
72 | fbwindow().y() + m_step_size_y ); | 72 | fbwindow().y() + m_step_size_y); |
73 | } | 73 | } |
74 | 74 | ||
75 | ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) : | 75 | 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) : | |||
77 | 77 | ||
78 | void ResizeCmd::real_execute() { | 78 | void ResizeCmd::real_execute() { |
79 | fbwindow().resize( | 79 | fbwindow().resize( |
80 | fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc, | 80 | fbwindow().width() + |
81 | fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc ); | 81 | m_step_size_x * fbwindow().winClient().width_inc, |
82 | fbwindow().height() + | ||
83 | m_step_size_y * fbwindow().winClient().height_inc); | ||
82 | } | 84 | } |
83 | 85 | ||
84 | MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) : | 86 | MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) : |
85 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } | 87 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } |
86 | 88 | ||
87 | void MoveToCmd::real_execute() { | 89 | void MoveToCmd::real_execute() { |
88 | fbwindow().move( | 90 | fbwindow().move(m_step_size_x, m_step_size_y); |
89 | m_step_size_x, | ||
90 | m_step_size_y ); | ||
91 | } | 91 | } |
92 | 92 | ||
93 | ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) : | 93 | ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) : |
94 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } | 94 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } |
95 | 95 | ||
96 | void ResizeToCmd::real_execute() { | 96 | void ResizeToCmd::real_execute() { |
97 | fbwindow().resize( | 97 | fbwindow().resize(m_step_size_x, m_step_size_y); |
98 | m_step_size_x * fbwindow().winClient().width_inc, | ||
99 | m_step_size_y * fbwindow().winClient().height_inc ); | ||
100 | } | 98 | } |