aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-07 21:52:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-07 22:18:49 +0200
commitf3d231d34cd4bde4f2bc8841a8a08028c714ba3a (patch)
treeb223f17320c009a8c0e438d338698642eccb1302
parentWidget[Base]: Add *Pixel variants of MinSize, MaxSize and SetMinMaxSize (diff)
downloadwireguard-windows-f3d231d34cd4bde4f2bc8841a8a08028c714ba3a.tar.xz
wireguard-windows-f3d231d34cd4bde4f2bc8841a8a08028c714ba3a.zip
tableviewcolumn: do DPI conversion in create() too
You remembered the update()->getLVCOLUMN() path, but forgot about the create() path, so this fixes that oversight.
-rw-r--r--tableviewcolumn.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tableviewcolumn.go b/tableviewcolumn.go
index 8e902d20..027a2652 100644
--- a/tableviewcolumn.go
+++ b/tableviewcolumn.go
@@ -380,6 +380,7 @@ func (tvc *TableViewColumn) create() error {
} else {
lvc.Cx = 100
}
+ lvc.Cx = int32(tvc.tv.IntFrom96DPI(int(lvc.Cx)))
switch tvc.alignment {
case AlignCenter: