From 83c4baa25e24920cc6da2e1f87118bc47ed35851 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 20 Oct 2020 22:01:48 +0200 Subject: Split stub backends into separate files This makes things more consistent between platforms and backends. --- pugl/detail/win.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'pugl/detail/win.c') diff --git a/pugl/detail/win.c b/pugl/detail/win.c index b3ba00d..078b0a0 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -1117,28 +1117,6 @@ puglSetClipboard(PuglView* const view, return PUGL_SUCCESS; } -static PuglStatus -puglWinStubEnter(PuglView* view, const PuglEventExpose* expose) -{ - if (expose) { - PAINTSTRUCT ps; - BeginPaint(view->impl->hwnd, &ps); - } - - return PUGL_SUCCESS; -} - -static PuglStatus -puglWinStubLeave(PuglView* view, const PuglEventExpose* expose) -{ - if (expose) { - PAINTSTRUCT ps; - EndPaint(view->impl->hwnd, &ps); - } - - return PUGL_SUCCESS; -} - static const char* const cursor_ids[] = { IDC_ARROW, // ARROW IDC_IBEAM, // CARET @@ -1172,16 +1150,3 @@ puglSetCursor(PuglView* view, PuglCursor cursor) return PUGL_SUCCESS; } - -const PuglBackend* -puglStubBackend(void) -{ - static const PuglBackend backend = {puglWinStubConfigure, - puglStubCreate, - puglStubDestroy, - puglWinStubEnter, - puglWinStubLeave, - puglStubGetContext}; - - return &backend; -} -- cgit v1.2.1