diff options
author | David Robillard <d@drobilla.net> | 2019-10-27 13:05:00 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-03 21:03:18 +0100 |
commit | 3c9a8a2ed86d08da842e11d32065da43b5bfdc77 (patch) | |
tree | d5ddb2c4e86a21129bc1b533613d2110a9ba2e09 /pugl/detail/x11.h | |
parent | 14c7cb54a913be5a505148068582d9c56e3d1681 (diff) | |
download | pugl-3c9a8a2ed86d08da842e11d32065da43b5bfdc77.tar.gz pugl-3c9a8a2ed86d08da842e11d32065da43b5bfdc77.tar.bz2 pugl-3c9a8a2ed86d08da842e11d32065da43b5bfdc77.zip |
Move platform stub configuration code to platform headers
This allows backends which use basic software rendering (like Cairo) to share
the common basic window format setup code.
Diffstat (limited to 'pugl/detail/x11.h')
-rw-r--r-- | pugl/detail/x11.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pugl/detail/x11.h b/pugl/detail/x11.h index bfdbf60..d7990ca 100644 --- a/pugl/detail/x11.h +++ b/pugl/detail/x11.h @@ -49,3 +49,16 @@ struct PuglInternalsImpl { PuglEvent pendingConfigure; PuglEvent pendingExpose; }; + +static inline PuglStatus +puglX11StubConfigure(PuglView* view) +{ + PuglInternals* const impl = view->impl; + XVisualInfo pat = {0}; + int n = 0; + + pat.screen = impl->screen; + impl->vi = XGetVisualInfo(impl->display, VisualScreenMask, &pat, &n); + + return PUGL_SUCCESS; +} |