|
|
@@ -3,7 +3,7 @@ |
|
|
|
* Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies |
|
|
|
* Copyright (C) 2000 Christian Zander <phoenix@minion.de> |
|
|
|
* Copyright (C) 2015 Nedko Arnaudov |
|
|
|
* Copyright (C) 2016-2021 Filipe Coelho <falktx@falktx.com> |
|
|
|
* Copyright (C) 2016-2022 Filipe Coelho <falktx@falktx.com> |
|
|
|
* |
|
|
|
* This program is free software; you can redistribute it and/or |
|
|
|
* modify it under the terms of the GNU General Public License as |
|
|
@@ -30,7 +30,12 @@ DistrhoUIGLBars::DistrhoUIGLBars() |
|
|
|
fInitialized(false), |
|
|
|
fResizeHandle(this) |
|
|
|
{ |
|
|
|
setGeometryConstraints(256, 256, true); |
|
|
|
const double scaleFactor = getScaleFactor(); |
|
|
|
|
|
|
|
if (d_isNotZero(scaleFactor)) |
|
|
|
setSize(512*scaleFactor, 512*scaleFactor); |
|
|
|
|
|
|
|
setGeometryConstraints(256*scaleFactor, 256*scaleFactor, true); |
|
|
|
|
|
|
|
// no need to show resize handle if window is user-resizable |
|
|
|
if (isResizable()) |
|
|
|