summaryrefslogtreecommitdiff
path: root/redo/sizing_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'redo/sizing_windows.c')
-rw-r--r--redo/sizing_windows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/sizing_windows.c b/redo/sizing_windows.c
index a2cd2cf..5f14b19 100644
--- a/redo/sizing_windows.c
+++ b/redo/sizing_windows.c
@@ -5,7 +5,7 @@
/* TODO figure out where these should go */
-void calculateBaseUnits(HWND hwnd, int *baseX, int *baseY)
+void calculateBaseUnits(HWND hwnd, int *baseX, int *baseY, LONG *internalLeading)
{
HDC dc;
HFONT prevFont;
@@ -21,6 +21,7 @@ void calculateBaseUnits(HWND hwnd, int *baseX, int *baseY)
xpanic("error getting text metrics for preferred size calculations", GetLastError());
*baseX = (int) tm.tmAveCharWidth; /* TODO not optimal; third reference below has better way */
*baseY = (int) tm.tmHeight;
+ *internalLeading = tm.tmInternalLeading;
if (SelectObject(dc, prevFont) != controlFont)
xpanic("error restoring previous font into device context after preferred size calculations", GetLastError());
if (ReleaseDC(hwnd, dc) == 0)