Browse Source

Half minimum size; Fix resize handle not visible

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 3 years ago
parent
commit
5ef9644879
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      plugins/ProM/DistrhoUIProM.cpp

+ 6
- 1
plugins/ProM/DistrhoUIProM.cpp View File

@@ -86,7 +86,7 @@ DistrhoUIProM::DistrhoUIProM()
// const double scaleFactor = getScaleFactor(); // const double scaleFactor = getScaleFactor();
// if (d_isNotZero(scaleFactor)) // if (d_isNotZero(scaleFactor))
// setSize(512*scaleFactor, 512*scaleFactor) // setSize(512*scaleFactor, 512*scaleFactor)
setGeometryConstraints(512, 512, true);
setGeometryConstraints(256, 256, true);


// no need to show resize handle if window is user-resizable // no need to show resize handle if window is user-resizable
// if (isResizable()) // if (isResizable())
@@ -131,6 +131,8 @@ void DistrhoUIProM::uiIdle()


void DistrhoUIProM::uiReshape(uint width, uint height) void DistrhoUIProM::uiReshape(uint width, uint height)
{ {
UI::uiReshape(width, height);

if (fPM == nullptr) if (fPM == nullptr)
{ {
#ifdef PROJECTM_DATA_DIR #ifdef PROJECTM_DATA_DIR
@@ -160,6 +162,9 @@ void DistrhoUIProM::onDisplay()
return; return;


fPM->renderFrame(); fPM->renderFrame();

// turn off shaders at the end of the drawing cycle, so other things can draw properly
glUseProgram(0);
} }


static projectMKeycode dgl2pmkey(const DGL_NAMESPACE::Key key) noexcept static projectMKeycode dgl2pmkey(const DGL_NAMESPACE::Key key) noexcept


Loading…
Cancel
Save