summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-14 23:56:20 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-14 23:56:20 +0800
commit42a7b1e3bfde9c0137e3f18f023cd2d19ddb493c (patch)
tree1692fc051656f013535957ead35c5420484f5062
parent69b02f657cab11b9c2db85de118f766323e758cd (diff)
downloaddialog-42a7b1e3bfde9c0137e3f18f023cd2d19ddb493c.tar.gz
dialog-42a7b1e3bfde9c0137e3f18f023cd2d19ddb493c.tar.bz2
Update for new core API
-rw-r--r--src/dialog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dialog.h b/src/dialog.h
index 6b45e4e..dd52bbe 100644
--- a/src/dialog.h
+++ b/src/dialog.h
@@ -85,10 +85,10 @@ class DialogWindow :
#define DIALOG_WINDOW(w) \
DialogWindow *dw = DialogWindow::get (w);
-#define WIN_X(w) ((w)->x () - (w)->input ().left)
-#define WIN_Y(w) ((w)->y () - (w)->input ().top)
-#define WIN_W(w) ((w)->width () + (w)->input ().left + (w)->input ().right)
-#define WIN_H(w) ((w)->height () + (w)->input ().top + (w)->input ().bottom)
+#define WIN_X(w) ((w)->x () - (w)->border ().left)
+#define WIN_Y(w) ((w)->y () - (w)->border ().top)
+#define WIN_W(w) ((w)->width () + (w)->border ().left + (w)->border ().right)
+#define WIN_H(w) ((w)->height () + (w)->border ().top + (w)->border ().bottom)
#define SPEED (optionGetSpeed () * 0.0005f)