Browse Source

Fix build with new pugl

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/head
falkTX 2 years ago
parent
commit
176b1a4707
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 5 additions and 4 deletions
  1. +1
    -1
      dgl/src/Window.cpp
  2. +2
    -2
      dgl/src/WindowPrivateData.cpp
  3. +2
    -1
      dgl/src/pugl.cpp

+ 1
- 1
dgl/src/Window.cpp View File

@@ -362,7 +362,7 @@ const GraphicsContext& Window::getGraphicsContext() const noexcept

uintptr_t Window::getNativeWindowHandle() const noexcept
{
return puglGetNativeWindow(pData->view);
return puglGetNativeView(pData->view);
}

double Window::getScaleFactor() const noexcept


+ 2
- 2
dgl/src/WindowPrivateData.cpp View File

@@ -70,7 +70,7 @@ static PuglView* puglNewViewWithTransientParent(PuglWorld* const world, PuglView

if (PuglView* const view = puglNewView(world))
{
puglSetTransientParent(view, puglGetNativeWindow(transientParentView));
puglSetTransientParent(view, puglGetNativeView(transientParentView));
return view;
}

@@ -477,7 +477,7 @@ bool Window::PrivateData::openFileBrowser(const FileBrowserOptions& options)
options2.title = puglGetWindowTitle(view);

fileBrowserHandle = fileBrowserCreate(isEmbed,
puglGetNativeWindow(view),
puglGetNativeView(view),
autoScaling ? autoScaleFactor : scaleFactor,
options2);



+ 2
- 1
dgl/src/pugl.cpp View File

@@ -167,7 +167,8 @@ START_NAMESPACE_DGL
# endif
#endif

#include "pugl-upstream/src/implementation.c"
#include "pugl-upstream/src/common.c"
#include "pugl-upstream/src/internal.c"

// --------------------------------------------------------------------------------------------------------------------
// DGL specific, expose backend enter


Loading…
Cancel
Save