From e090029678260d2ee1ed73c8dfeae9be2bec4c3a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 9 Jun 2014 16:45:06 -0400 Subject: [PATCH] Removed TODO about GetDC() vs GetWindowDC() in prefsize_windows.go; the latter includes the non-client area, which we won't bother with. --- prefsize_windows.go | 1 - 1 file changed, 1 deletion(-) diff --git a/prefsize_windows.go b/prefsize_windows.go index 17b4088..fd0bb67 100644 --- a/prefsize_windows.go +++ b/prefsize_windows.go @@ -103,7 +103,6 @@ func (s *sysData) preferredSize() (width int, height int) { var tm _TEXTMETRICS var baseX, baseY int - // TODO use GetDC() and not GetWindowDC()? r1, _, err := _getWindowDC.Call(uintptr(s.hwnd)) if r1 == 0 { // failure panic(fmt.Errorf("error getting DC for preferred size calculations: %v", err))