-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add width, height args to puglFallbackOnResize
Signed-off-by: falkTX <[email protected]>
- Loading branch information
Showing
6 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* DISTRHO Plugin Framework (DPF) | ||
* Copyright (C) 2012-2022 Filipe Coelho <[email protected]> | ||
* Copyright (C) 2012-2023 Filipe Coelho <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -537,10 +537,10 @@ void Window::onFocus(bool, CrossingMode) | |
{ | ||
} | ||
|
||
void Window::onReshape(uint, uint) | ||
void Window::onReshape(const uint width, const uint height) | ||
{ | ||
if (pData->view != nullptr) | ||
puglFallbackOnResize(pData->view); | ||
puglFallbackOnResize(pData->view, width, height); | ||
} | ||
|
||
void Window::onScaleFactorChanged(double) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* DISTRHO Plugin Framework (DPF) | ||
* Copyright (C) 2012-2022 Filipe Coelho <[email protected]> | ||
* Copyright (C) 2012-2023 Filipe Coelho <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -452,7 +452,7 @@ void puglOnDisplayPrepare(PuglView*) | |
// -------------------------------------------------------------------------------------------------------------------- | ||
// DGL specific, build-specific fallback resize | ||
|
||
void puglFallbackOnResize(PuglView* const view) | ||
void puglFallbackOnResize(PuglView* const view, uint, uint) | ||
{ | ||
#ifdef DGL_OPENGL | ||
glEnable(GL_BLEND); | ||
|
@@ -624,6 +624,9 @@ void puglWin32ShowCentered(PuglView* const view) | |
|
||
#elif defined(HAVE_X11) | ||
|
||
// -------------------------------------------------------------------------------------------------------------------- | ||
// X11 specific, update world without triggering exposure events | ||
|
||
PuglStatus puglX11UpdateWithoutExposures(PuglWorld* const world) | ||
{ | ||
const bool wasDispatchingEvents = world->impl->dispatchingEvents; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* DISTRHO Plugin Framework (DPF) | ||
* Copyright (C) 2012-2022 Filipe Coelho <[email protected]> | ||
* Copyright (C) 2012-2023 Filipe Coelho <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -19,7 +19,7 @@ | |
|
||
#include "../Base.hpp" | ||
|
||
/* we will include all header files used in pugl.h in their C++ friendly form, then pugl stuff in custom namespace */ | ||
// we will include all header files used in pugl.h in their C++ friendly form, then pugl stuff in custom namespace | ||
#include <cstddef> | ||
#ifdef DISTRHO_PROPER_CPP11_SUPPORT | ||
# include <cstdbool> | ||
|
@@ -71,7 +71,7 @@ PuglStatus puglSetSizeAndDefault(PuglView* view, uint width, uint height); | |
void puglOnDisplayPrepare(PuglView* view); | ||
|
||
// DGL specific, build-specific fallback resize | ||
void puglFallbackOnResize(PuglView* view); | ||
void puglFallbackOnResize(PuglView* view, uint width, uint height); | ||
|
||
#if defined(DISTRHO_OS_HAIKU) | ||
|
||
|
@@ -104,7 +104,7 @@ void puglWin32ShowCentered(PuglView* view); | |
|
||
#define DGL_USING_X11 | ||
|
||
// X11 specific, update world without triggering exposure evente | ||
// X11 specific, update world without triggering exposure events | ||
PuglStatus puglX11UpdateWithoutExposures(PuglWorld* world); | ||
|
||
// X11 specific, set dialog window type and pid hints | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters