Browse Source

Fix last commit

tags/v0.9.0
falkTX 12 years ago
parent
commit
61fe48941e
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      c++/distrho-plugin-toolkit/src/pugl/pugl.h
  2. +1
    -1
      c++/distrho-plugin-toolkit/src/pugl/pugl_osx.m
  3. +1
    -1
      c++/distrho-plugin-toolkit/src/pugl/pugl_win.cpp
  4. +2
    -2
      c++/distrho-plugin-toolkit/src/pugl/pugl_x11.c

+ 1
- 1
c++/distrho-plugin-toolkit/src/pugl/pugl.h View File

@@ -227,7 +227,7 @@ puglCreate(PuglNativeWindow parent,
int height,
bool resizable,
bool addToDesktop = true,
long x11Display = 0);
long* x11Display = NULL);

/**
Set the handle to be passed to all callbacks.


+ 1
- 1
c++/distrho-plugin-toolkit/src/pugl/pugl_osx.m View File

@@ -229,7 +229,7 @@ puglCreate(PuglNativeWindow parent,
int height,
bool resizable,
bool addToDesktop,
long x11Display)
long* x11Display)
{
PuglView* view = (PuglView*)calloc(1, sizeof(PuglView));
PuglInternals* impl = (PuglInternals*)calloc(1, sizeof(PuglInternals));


+ 1
- 1
c++/distrho-plugin-toolkit/src/pugl/pugl_win.cpp View File

@@ -47,7 +47,7 @@ puglCreate(PuglNativeWindow parent,
int height,
bool resizable,
bool addToDesktop,
long x11Display)
long* x11Display)
{
PuglView* view = (PuglView*)calloc(1, sizeof(PuglView));
PuglInternals* impl = (PuglInternals*)calloc(1, sizeof(PuglInternals));


+ 2
- 2
c++/distrho-plugin-toolkit/src/pugl/pugl_x11.c View File

@@ -72,7 +72,7 @@ puglCreate(PuglNativeWindow parent,
int height,
bool resizable,
bool addToDesktop,
long x11Display)
long* x11Display)
{
PuglView* view = (PuglView*)calloc(1, sizeof(PuglView));
PuglInternals* impl = (PuglInternals*)calloc(1, sizeof(PuglInternals));
@@ -84,7 +84,7 @@ puglCreate(PuglNativeWindow parent,
view->width = width;
view->height = height;

impl->display = XOpenDisplay(x11Display);
impl->display = XOpenDisplay(x11Display ? *x11Display : 0);
impl->screen = DefaultScreen(impl->display);

XVisualInfo* vi = glXChooseVisual(impl->display, impl->screen, attrListDbl);


Loading…
Cancel
Save