From 3c9a8a2ed86d08da842e11d32065da43b5bfdc77 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Oct 2019 13:05:00 +0100 Subject: 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. --- pugl/detail/x11.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pugl/detail/x11.h') 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; +} -- cgit v1.2.1