From 770e6b17632a744c4e273721e96d93235516a976 Mon Sep 17 00:00:00 2001 From: Tobias Predel Date: Mon, 8 Jan 2024 22:03:46 +0100 Subject: [PATCH] Make status bar fields DPI aware --- src/myframe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/myframe.h b/src/myframe.h index 5e9b73c9..7b32969d 100755 --- a/src/myframe.h +++ b/src/myframe.h @@ -713,7 +713,7 @@ struct MyFrame : wxFrame { wxStatusBar *sb = CreateStatusBar(4); sb->SetOwnBackgroundColour(toolbgcol); SetStatusBarPane(0); - int swidths[] = {-1, 200, 120, 100}; + int swidths[] = {-1, FromDIP(200), FromDIP(120), FromDIP(100)}; SetStatusWidths(4, swidths); }