Removed TODO about GetDC() vs GetWindowDC() in prefsize_windows.go; the latter includes the non-client area, which we won't bother with.

This commit is contained in:
Pietro Gagliardi 2014-06-09 16:45:06 -04:00
parent bdb942440c
commit e090029678
1 changed files with 0 additions and 1 deletions

View File

@ -103,7 +103,6 @@ func (s *sysData) preferredSize() (width int, height int) {
var tm _TEXTMETRICS var tm _TEXTMETRICS
var baseX, baseY int var baseX, baseY int
// TODO use GetDC() and not GetWindowDC()?
r1, _, err := _getWindowDC.Call(uintptr(s.hwnd)) r1, _, err := _getWindowDC.Call(uintptr(s.hwnd))
if r1 == 0 { // failure if r1 == 0 { // failure
panic(fmt.Errorf("error getting DC for preferred size calculations: %v", err)) panic(fmt.Errorf("error getting DC for preferred size calculations: %v", err))