From b9d44a3fc8d063e09c3a4d88517af8f3c94cabac Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 9 Oct 2016 17:29:59 +0200 Subject: [PATCH] CHintbox: use default text frame depends from default height and width --- src/gui/widget/hintbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/hintbox.h b/src/gui/widget/hintbox.h index 01e46174f..b96db3834 100644 --- a/src/gui/widget/hintbox.h +++ b/src/gui/widget/hintbox.h @@ -37,7 +37,7 @@ #define HINTBOX_MAX_HEIGHT 420 #define HINTBOX_DEFAULT_TIMEOUT 5 //frame around hint container as indent -#define W_FRAME 15 +#define W_FRAME std::max(HINTBOX_MIN_WIDTH, HINTBOX_MIN_HEIGHT) * 2/100 //frame color around hint/message box #define HINTBOX_DEFAULT_FRAME_COLOR COL_FRAME