diff options
author | Dan Gudmundsson <[email protected]> | 2019-02-18 12:41:09 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2019-02-18 12:41:09 +0100 |
commit | 2174af8288bc5d8c6b7f39daf7a61dcb63a53118 (patch) | |
tree | a813592fdbd18344d92f9ddc0084656905907161 /lib/observer/src/cdv_detail_wx.erl | |
parent | d89ac6959f8f5c9f8d4960f84e23e34e9da25323 (diff) | |
parent | 1fc95bdd084d9e43e255a1962dbb562a2e1aa367 (diff) | |
download | otp-2174af8288bc5d8c6b7f39daf7a61dcb63a53118.tar.gz otp-2174af8288bc5d8c6b7f39daf7a61dcb63a53118.tar.bz2 otp-2174af8288bc5d8c6b7f39daf7a61dcb63a53118.zip |
Merge branch 'maint'
* maint:
Add OBSERVER_SCALE environment variable for HiDPI support
Diffstat (limited to 'lib/observer/src/cdv_detail_wx.erl')
-rw-r--r-- | lib/observer/src/cdv_detail_wx.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/cdv_detail_wx.erl b/lib/observer/src/cdv_detail_wx.erl index 4b1984c394..5e1137511a 100644 --- a/lib/observer/src/cdv_detail_wx.erl +++ b/lib/observer/src/cdv_detail_wx.erl @@ -84,8 +84,9 @@ destroy_progress(_) -> ok. init(Id,ParentFrame,Callback,App,Parent,{Title,Info,TW}) -> + Scale = observer_wx:get_scale(), Frame=wxFrame:new(ParentFrame, ?wxID_ANY, [Title], - [{style, ?wxDEFAULT_FRAME_STYLE}, {size, {850,600}}]), + [{style, ?wxDEFAULT_FRAME_STYLE}, {size, {Scale*850,Scale*600}}]), MenuBar = wxMenuBar:new(), create_menus(MenuBar), wxFrame:setMenuBar(Frame, MenuBar), |