summaryrefslogtreecommitdiff
path: root/src/dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.h')
-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)