diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-01 19:24:57 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-01 19:24:57 -0400 |
| commit | 6e78eb94bab6469b39162f3afcfef083d4e9b281 (patch) | |
| tree | 82283d935f1b188c9c77561c2efafebce624624a /redo/basicctrls_windows.go | |
| parent | 785d6ac4fd6d60113c0ad37b9b5cfbbe5b7f4abc (diff) | |
More Windows sizing framework code: merged together the MulDiv() instances into wrapper functions and added the basic text length storage into controlbase.
Diffstat (limited to 'redo/basicctrls_windows.go')
| -rw-r--r-- | redo/basicctrls_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/basicctrls_windows.go b/redo/basicctrls_windows.go index ef16825..1099a19 100644 --- a/redo/basicctrls_windows.go +++ b/redo/basicctrls_windows.go @@ -173,7 +173,7 @@ const ( func (l *label) labelcommitResize(c *allocation, d *sizing) { if !l.standalone { - yoff := int(C.MulDiv(C.int(labelYOffset), C.int(d.baseY), 8)) + yoff := fromdlgunitsY(labelYOffset, d) c.y += yoff c.height -= yoff } |
