Merge pull request #458 from analogjupiter/suppress-auto-opengl-viewport

Suppress sdpy's auto-OpenGL-viewport in PixmapPresenter
This commit is contained in:
Adam D. Ruppe 2024-09-10 22:01:18 -04:00 committed by GitHub
commit b1c1d86fb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -535,6 +535,7 @@ final class OpenGl3PixmapRenderer : PixmapRenderer {
public void setup(PresenterObjectsContainer* pro) { public void setup(PresenterObjectsContainer* pro) {
_poc = pro; _poc = pro;
_poc.window.suppressAutoOpenglViewport = true;
_poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime; _poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime;
_poc.window.redrawOpenGlScene = &this.redrawOpenGlScene; _poc.window.redrawOpenGlScene = &this.redrawOpenGlScene;
} }
@ -726,6 +727,7 @@ final class OpenGl1PixmapRenderer : PixmapRenderer {
public void setup(PresenterObjectsContainer* poc) { public void setup(PresenterObjectsContainer* poc) {
_poc = poc; _poc = poc;
_poc.window.suppressAutoOpenglViewport = true;
_poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime; _poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime;
_poc.window.redrawOpenGlScene = &this.redrawOpenGlScene; _poc.window.redrawOpenGlScene = &this.redrawOpenGlScene;
} }