diff options
Diffstat (limited to 'pugl/src/x11_stub.c')
-rw-r--r-- | pugl/src/x11_stub.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/pugl/src/x11_stub.c b/pugl/src/x11_stub.c index be66a88..de89a86 100644 --- a/pugl/src/x11_stub.c +++ b/pugl/src/x11_stub.c @@ -27,32 +27,32 @@ PuglStatus puglX11StubConfigure(PuglView* view) { - PuglInternals* const impl = view->impl; - XVisualInfo pat = {0}; - int n = 0; + PuglInternals* const impl = view->impl; + XVisualInfo pat = {0}; + int n = 0; - pat.screen = impl->screen; - impl->vi = XGetVisualInfo(impl->display, VisualScreenMask, &pat, &n); + pat.screen = impl->screen; + impl->vi = XGetVisualInfo(impl->display, VisualScreenMask, &pat, &n); - view->hints[PUGL_RED_BITS] = impl->vi->bits_per_rgb; - view->hints[PUGL_GREEN_BITS] = impl->vi->bits_per_rgb; - view->hints[PUGL_BLUE_BITS] = impl->vi->bits_per_rgb; - view->hints[PUGL_ALPHA_BITS] = 0; + view->hints[PUGL_RED_BITS] = impl->vi->bits_per_rgb; + view->hints[PUGL_GREEN_BITS] = impl->vi->bits_per_rgb; + view->hints[PUGL_BLUE_BITS] = impl->vi->bits_per_rgb; + view->hints[PUGL_ALPHA_BITS] = 0; - return PUGL_SUCCESS; + return PUGL_SUCCESS; } const PuglBackend* puglStubBackend(void) { - static const PuglBackend backend = { - puglX11StubConfigure, - puglStubCreate, - puglStubDestroy, - puglStubEnter, - puglStubLeave, - puglStubGetContext, - }; - - return &backend; + static const PuglBackend backend = { + puglX11StubConfigure, + puglStubCreate, + puglStubDestroy, + puglStubEnter, + puglStubLeave, + puglStubGetContext, + }; + + return &backend; } |