Skip to content

Commit b118cb0

Browse files
committed
Grow with scale factor as needed
Signed-off-by: falkTX <falktx@falktx.com>
1 parent c4d4c60 commit b118cb0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎plugins/glBars/DistrhoUIGLBars.cpp‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
44
* Copyright (C) 2000 Christian Zander <phoenix@minion.de>
55
* Copyright (C) 2015 Nedko Arnaudov
6-
* Copyright (C) 2016-2021 Filipe Coelho <falktx@falktx.com>
6+
* Copyright (C) 2016-2022 Filipe Coelho <falktx@falktx.com>
77
*
88
* This program is free software; you can redistribute it and/or
99
* modify it under the terms of the GNU General Public License as
@@ -30,7 +30,12 @@ DistrhoUIGLBars::DistrhoUIGLBars()
3030
fInitialized(false),
3131
fResizeHandle(this)
3232
{
33-
setGeometryConstraints(256, 256, true);
33+
const double scaleFactor = getScaleFactor();
34+
35+
if (d_isNotZero(scaleFactor))
36+
setSize(512*scaleFactor, 512*scaleFactor);
37+
38+
setGeometryConstraints(256*scaleFactor, 256*scaleFactor, true);
3439

3540
// no need to show resize handle if window is user-resizable
3641
if (isResizable())

0 commit comments

Comments
 (0)