aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_table_wx.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2019-02-18 12:37:23 +0100
committerDan Gudmundsson <[email protected]>2019-02-18 12:37:23 +0100
commit1fc95bdd084d9e43e255a1962dbb562a2e1aa367 (patch)
tree0eaf5423b445b45ed7982161b3ea8379e5d2f9a9 /lib/observer/src/cdv_table_wx.erl
parente25fe1d35209d321a512091018a78ee9b7cc0b64 (diff)
parent77e83d0757d56d15f4b1bc70044b89d3eaf48b2b (diff)
downloadotp-1fc95bdd084d9e43e255a1962dbb562a2e1aa367.tar.gz
otp-1fc95bdd084d9e43e255a1962dbb562a2e1aa367.tar.bz2
otp-1fc95bdd084d9e43e255a1962dbb562a2e1aa367.zip
Merge branch 'pr/2105' into maint
* pr/2105: Add OBSERVER_SCALE environment variable for HiDPI support OTP-15586
Diffstat (limited to 'lib/observer/src/cdv_table_wx.erl')
-rw-r--r--lib/observer/src/cdv_table_wx.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/cdv_table_wx.erl b/lib/observer/src/cdv_table_wx.erl
index 0f28a51017..0cad272262 100644
--- a/lib/observer/src/cdv_table_wx.erl
+++ b/lib/observer/src/cdv_table_wx.erl
@@ -50,11 +50,12 @@ init([ParentWin, {ColumnSpec,Info,TW}]) ->
end,
Grid = wxListCtrl:new(ParentWin, [{style, Style}]),
Li = wxListItem:new(),
+ Scale = observer_wx:get_scale(),
AddListEntry = fun({Name, Align, DefSize}, Col) ->
wxListItem:setText(Li, Name),
wxListItem:setAlign(Li, Align),
wxListCtrl:insertColumn(Grid, Col, Li),
- wxListCtrl:setColumnWidth(Grid, Col, DefSize),
+ wxListCtrl:setColumnWidth(Grid, Col, DefSize*Scale),
Col + 1
end,
lists:foldl(AddListEntry, 0, ColumnSpec),