aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-20 22:01:48 +0200
committerDavid Robillard <d@drobilla.net>2020-10-20 22:01:48 +0200
commit83c4baa25e24920cc6da2e1f87118bc47ed35851 (patch)
tree8d46a9270071ea883e30ab57ba502edd4be8c038 /pugl/detail/win.c
parenta87395423915f913b819291b3b4920501cccdf95 (diff)
downloadpugl-83c4baa25e24920cc6da2e1f87118bc47ed35851.tar.gz
pugl-83c4baa25e24920cc6da2e1f87118bc47ed35851.tar.bz2
pugl-83c4baa25e24920cc6da2e1f87118bc47ed35851.zip
Split stub backends into separate files
This makes things more consistent between platforms and backends.
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r--pugl/detail/win.c35
1 files changed, 0 insertions, 35 deletions
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;
-}