summaryrefslogtreecommitdiff
path: root/libtk/canvu.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-08-22 13:59:46 +0100
committerforsyth <forsyth@vitanuova.com>2010-08-22 13:59:46 +0100
commitc9c0d12ef55c878b0e361f9f6936bbb4c67b40fb (patch)
tree51b281d84a574b539803d8c0a68873b77b2408fd /libtk/canvu.c
parent43d5f895e7e089a8ca755eca0a19386de5f59f61 (diff)
20100822-1358
Diffstat (limited to 'libtk/canvu.c')
-rw-r--r--libtk/canvu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libtk/canvu.c b/libtk/canvu.c
index 8671a11a..9281303d 100644
--- a/libtk/canvu.c
+++ b/libtk/canvu.c
@@ -338,16 +338,14 @@ tkcvsanchor(Point dp, int w, int h, int anchor)
if(anchor & Tknorth)
o.y = dp.y;
- else
- if(anchor & Tksouth)
+ else if(anchor & Tksouth)
o.y = dp.y - h;
else
o.y = dp.y - h/2;
if(anchor & Tkwest)
o.x = dp.x;
- else
- if(anchor & Tkeast)
+ else if(anchor & Tkeast)
o.x = dp.x - w;
else
o.x = dp.x - w/2;