aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/selection.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2018-12-18 22:53:30 +0100
committerEugene Sandulenko2018-12-18 22:53:30 +0100
commit0dab01862c3c1e34a80a239788a1d81fd9b679fd (patch)
tree8a2e39089adddaa5dbb03030a9c92dd5c05dbca4 /engines/glk/selection.cpp
parentba00661b3a531834e6f7d648144996540539573c (diff)
downloadscummvm-rg350-0dab01862c3c1e34a80a239788a1d81fd9b679fd.tar.gz
scummvm-rg350-0dab01862c3c1e34a80a239788a1d81fd9b679fd.tar.bz2
scummvm-rg350-0dab01862c3c1e34a80a239788a1d81fd9b679fd.zip
JANITORIAL: Whitespace fixes
Diffstat (limited to 'engines/glk/selection.cpp')
-rw-r--r--engines/glk/selection.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/glk/selection.cpp b/engines/glk/selection.cpp
index e5e853e50c..185a9a3090 100644
--- a/engines/glk/selection.cpp
+++ b/engines/glk/selection.cpp
@@ -119,9 +119,9 @@ void WindowMask::putHyperlink(uint linkval, uint x0, uint y0, uint x1, uint y1)
}
if (tx0 >= _hor
- || tx1 >= _hor
- || ty0 >= _ver || ty1 >= _ver
- || !_links[tx0] || !_links[tx1]) {
+ || tx1 >= _hor
+ || ty0 >= _ver || ty1 >= _ver
+ || !_links[tx0] || !_links[tx1]) {
warning("putHyperlink: invalid range given");
return;
}
@@ -194,7 +194,7 @@ void Selection::clearSelection() {
}
bool Selection::checkSelection(const Rect &r) const {
- Rect select(MIN(_select.left, _select.right), MIN(_select.top, _select.bottom),
+ Rect select(MIN(_select.left, _select.right), MIN(_select.top, _select.bottom),
MAX(_select.left, _select.right), MAX(_select.top, _select.bottom));
if (select.isEmpty())
return false;
@@ -223,7 +223,7 @@ bool Selection::getSelection(const Rect &r, int *rx0, int *rx1) const {
row_selected = false;
if ((cy0 >= upper && cy0 <= lower)
- || (cy1 >= upper && cy1 <= lower))
+ || (cy1 >= upper && cy1 <= lower))
row_selected = true;
if (row >= cy0 && row <= cy1)