From 36f2e08fd382c7042fbd3c8e7708f3ba1b9c9bd7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 24 Nov 2023 10:55:29 +0900 Subject: Replaced various '#define' with actual strings - part 3 Signed-off-by: Michele Calgaro --- twin/geometry.cpp | 58 +++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'twin/geometry.cpp') diff --git a/twin/geometry.cpp b/twin/geometry.cpp index 6f21e90da..8d08a502c 100644 --- a/twin/geometry.cpp +++ b/twin/geometry.cpp @@ -337,23 +337,23 @@ TQPoint Workspace::adjustClientPosition( Client* c, TQPoint pos ) int snap = options->borderSnapZone; //snap trigger if (snap) { - if ((sOWO?(cxxmax):true) && (QABS(rx-xmax)xmax):true) && (TQABS(rx-xmax)ymax):true) && (QABS(ry-ymax)ymax):true) && (TQABS(ry-ymax)= ly ) && ( ry <= lry )) || (( cy <= ly ) && ( ry >= lry )) ) { - if ((sOWO?(cxlx):true) && (QABS(rx-lx)lx):true) && (TQABS(rx-lx)= lx ) && ( rx <= lrx )) || (( cx <= lx ) && ( rx >= lrx )) ) { - if ((sOWO?(cyly):true) && (QABS(ry-ly)ly):true) && (TQABS(ry-ly)ymax):true) && (QABS(ymax-newry)ymax):true) && (TQABS(ymax-newry)xmax):true) && (QABS(xmax-newrx)xmax):true) && (TQABS(xmax-newrx)ly):true) \ && WITHIN_WIDTH \ - && (QABS( ly - newry ) < deltaY) ) { \ - deltaY = QABS( ly - newry ); \ + && (TQABS( ly - newry ) < deltaY) ) { \ + deltaY = TQABS( ly - newry ); \ newry=ly; \ } #define SNAP_WINDOW_LEFT if ( (sOWO?(newcxlx):true) \ && WITHIN_HEIGHT \ - && (QABS( lx - newrx ) < deltaX)) \ + && (TQABS( lx - newrx ) < deltaX)) \ { \ - deltaX = QABS( lx - newrx ); \ + deltaX = TQABS( lx - newrx ); \ newrx=lx; \ } -- cgit v1.2.1