Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Changed step size for viewport shifts.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitram2342 committed Dec 7, 2010
1 parent 5e54847 commit 0207b83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/RenderAreaBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,31 +288,31 @@ class RenderAreaBase {
* Shift the viewport to left.
* Method performs a bounds check.
*/
virtual void shift_viewport_left(double part_of_page_width = 0.3) {
virtual void shift_viewport_left(double part_of_page_width = 0.15) {
shift_viewport(-1.0 * (double)get_viewport_width() * part_of_page_width, 0);
}

/**
* Shift the viewport to right.
* Method performs a bounds check.
*/
virtual void shift_viewport_right(double part_of_page_width = 0.3) {
virtual void shift_viewport_right(double part_of_page_width = 0.15) {
shift_viewport((double)get_viewport_width() * part_of_page_width, 0);
}

/**
* Shift the viewport up.
* Method performs a bounds check.
*/
virtual void shift_viewport_up(double part_of_page_height = 0.3) {
virtual void shift_viewport_up(double part_of_page_height = 0.15) {
shift_viewport(0, -1.0 * (double)get_viewport_height() * part_of_page_height);
}

/**
* Shift the viewport down.
* Method performs a bounds check.
*/
virtual void shift_viewport_down(double part_of_page_height = 0.3) {
virtual void shift_viewport_down(double part_of_page_height = 0.15) {
shift_viewport(0, (double)get_viewport_height() * part_of_page_height);
}

Expand Down

0 comments on commit 0207b83

Please sign in to comment.