Fix initial scroll position for new projects
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
9b9d8f6d4d
commit
e920e18f1f
3 changed files with 9 additions and 5 deletions
|
@ -93,10 +93,6 @@ std::shared_ptr<Image> Image::load(const std::string& filename) {
|
|||
}
|
||||
|
||||
|
||||
struct WindowParams {
|
||||
float rackBrightness = 1.0f;
|
||||
};
|
||||
|
||||
struct Window::Internal {
|
||||
DISTRHO_NAMESPACE::UI* ui = nullptr;
|
||||
DISTRHO_NAMESPACE::WindowParameters params;
|
||||
|
@ -131,6 +127,7 @@ void WindowInit(Window* const window, DISTRHO_NAMESPACE::UI* const ui)
|
|||
INFO("OpenGL: %s", version);
|
||||
|
||||
window->internal->ui = ui;
|
||||
window->internal->size = rack::math::Vec(ui->getWidth(), ui->getHeight());
|
||||
|
||||
window->vg = ui->getContext();
|
||||
#ifdef NANOVG_GLES2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue