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_cairo.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'pugl/detail/x11_cairo.c') diff --git a/pugl/detail/x11_cairo.c b/pugl/detail/x11_cairo.c index 0753317..1c7df6e 100644 --- a/pugl/detail/x11_cairo.c +++ b/pugl/detail/x11_cairo.c @@ -38,19 +38,6 @@ typedef struct { cairo_t* frontCr; } PuglX11CairoSurface; -static PuglStatus -puglX11CairoConfigure(PuglView* view) -{ - PuglInternals* const impl = view->impl; - - XVisualInfo pat; - int n; - pat.screen = impl->screen; - impl->vi = XGetVisualInfo(impl->display, VisualScreenMask, &pat, &n); - - return PUGL_SUCCESS; -} - static PuglStatus puglX11CairoCreate(PuglView* view) { @@ -163,7 +150,7 @@ const PuglBackend* puglCairoBackend(void) { static const PuglBackend backend = { - puglX11CairoConfigure, + puglX11StubConfigure, puglX11CairoCreate, puglX11CairoDestroy, puglX11CairoEnter, -- cgit v1.2.1