DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit d49366db694fb9097210ba9665449f6a67025285
parent 5f3b6e57d8a8d2401b803b0ee1e8df9f868680d2
Author: falkTX <falktx@gmail.com>
Date:   Sat,  4 Aug 2018 13:06:35 +0200

Fix rendering of subwidgets

Diffstat:
Mdgl/src/WidgetPrivateData.hpp | 8++++----
Mdgl/src/Window.cpp | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dgl/src/WidgetPrivateData.hpp b/dgl/src/WidgetPrivateData.hpp @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2016 Filipe Coelho <falktx@falktx.com> + * Copyright (C) 2012-2018 Filipe Coelho <falktx@falktx.com> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -63,9 +63,9 @@ struct Widget::PrivateData { subWidgets.clear(); } - void display(const uint width, const uint height) + void display(const uint width, const uint height, const bool renderingSubWidget) { - if (skipDisplay || size.isInvalid() || ! visible) + if ((skipDisplay && ! renderingSubWidget) || size.isInvalid() || ! visible) return; bool needsDisableScissor = false; @@ -123,7 +123,7 @@ struct Widget::PrivateData { Widget* const widget(*it); DISTRHO_SAFE_ASSERT_CONTINUE(widget->pData != this); - widget->pData->display(width, height); + widget->pData->display(width, height, true); } } diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp @@ -723,7 +723,7 @@ struct Window::PrivateData { FOR_EACH_WIDGET(it) { Widget* const widget(*it); - widget->pData->display(fWidth, fHeight); + widget->pData->display(fWidth, fHeight, false); } fSelf->onDisplayAfter();