summaryrefslogtreecommitdiff
path: root/new/ui_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-09 18:45:58 -0400
committerPietro Gagliardi <[email protected]>2015-04-09 18:45:58 -0400
commit18a58e56fa2b0e7651b1ceb738fd14ffa5719f33 (patch)
tree84bf730b3fc8a4702f2b86d9b5111b3314b314db /new/ui_windows.h
parente75235603735084300b8820a9e40f83fad3421e9 (diff)
DlgUnit -> DlgUnits
Diffstat (limited to 'new/ui_windows.h')
-rw-r--r--new/ui_windows.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/new/ui_windows.h b/new/ui_windows.h
index 6932ff4..4ade067 100644
--- a/new/ui_windows.h
+++ b/new/ui_windows.h
@@ -39,9 +39,8 @@ struct uiSizingSys {
LONG internalLeading;
};
// Use these in your preferredSize() implementation with baseX and baseY.
-// TODO rename to DlgUnits?
-#define uiDlgUnitToX(dlg, baseX) MulDiv((dlg), baseX, 4)
-#define uiDlgUnitToY(dlg, baseY) MulDiv((dlg), baseY, 8)
+#define uiDlgUnitsToX(dlg, baseX) MulDiv((dlg), baseX, 4)
+#define uiDlgUnitsToY(dlg, baseY) MulDiv((dlg), baseY, 8)
// and use this if you need the text of the window width
// TODO really export?