summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2012-09-03 09:45:40 +0000
committerPierre Ossman <ossman@cendio.se>2012-09-03 09:45:40 +0000
commitdd138441c40aaa970f17900b7929032154b0ed28 (patch)
treeca2626c7a1df0d2b3800337f273440ddaac82b8d /vncviewer
parent0e5934631d13510df145a037bee222aae44a139c (diff)
downloadtigervnc-dd138441c40aaa970f17900b7929032154b0ed28.tar.gz
tigervnc-dd138441c40aaa970f17900b7929032154b0ed28.zip
Break some overly long lines.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4993 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/DesktopWindow.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 04addba2..fecf6718 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -848,13 +848,19 @@ void DesktopWindow::handleEdgeScroll(void *data)
my = self->h();
if ((self->viewport->x() < 0) && (mx < EDGE_SCROLL_SIZE))
- dx = EDGE_SCROLL_SPEED - EDGE_SCROLL_SPEED * mx / EDGE_SCROLL_SIZE;
- if ((self->viewport->x() + self->viewport->w() > self->w()) && (mx > self->w() - EDGE_SCROLL_SIZE))
- dx = EDGE_SCROLL_SPEED * (self->w() - mx) / EDGE_SCROLL_SIZE - EDGE_SCROLL_SPEED;
+ dx = EDGE_SCROLL_SPEED -
+ EDGE_SCROLL_SPEED * mx / EDGE_SCROLL_SIZE;
+ if ((self->viewport->x() + self->viewport->w() > self->w()) &&
+ (mx > self->w() - EDGE_SCROLL_SIZE))
+ dx = EDGE_SCROLL_SPEED * (self->w() - mx) / EDGE_SCROLL_SIZE -
+ EDGE_SCROLL_SPEED;
if ((self->viewport->y() < 0) && (my < EDGE_SCROLL_SIZE))
- dy = EDGE_SCROLL_SPEED - EDGE_SCROLL_SPEED * my / EDGE_SCROLL_SIZE;
- if ((self->viewport->y() + self->viewport->h() > self->h()) && (my > self->h() - EDGE_SCROLL_SIZE))
- dy = EDGE_SCROLL_SPEED * (self->h() - my) / EDGE_SCROLL_SIZE - EDGE_SCROLL_SPEED;
+ dy = EDGE_SCROLL_SPEED -
+ EDGE_SCROLL_SPEED * my / EDGE_SCROLL_SIZE;
+ if ((self->viewport->y() + self->viewport->h() > self->h()) &&
+ (my > self->h() - EDGE_SCROLL_SIZE))
+ dy = EDGE_SCROLL_SPEED * (self->h() - my) / EDGE_SCROLL_SIZE -
+ EDGE_SCROLL_SPEED;
if ((dx == 0) && (dy == 0))
return;