]> source.dussan.org Git - tigervnc.git/commitdiff
Break some overly long lines.
authorPierre Ossman <ossman@cendio.se>
Mon, 3 Sep 2012 09:45:40 +0000 (09:45 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 3 Sep 2012 09:45:40 +0000 (09:45 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4993 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/DesktopWindow.cxx

index 04addba2ac698ad9497a749d54321a81f00f952a..fecf6718628fb4a1826f8761e4a1bf6abfe263d8 100644 (file)
@@ -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;