aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-22 20:24:05 -0400
committerDavid Robillard <d@drobilla.net>2023-11-11 09:47:23 -0500
commit32733abab8546b708cab59a4df09f92eb3214f73 (patch)
treeb6bed60281f9dd3b71006b7cb7aa7ab056d6a70c /src/win.c
parent61980dbb9e6968f9d99df9cbd4bbe2f46f0c5050 (diff)
downloadpugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.gz
pugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.bz2
pugl-32733abab8546b708cab59a4df09f92eb3214f73.zip
Add region parameter to puglAcceptOffer()
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/win.c b/src/win.c
index 3d245f2..2562d5f 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1365,7 +1365,8 @@ puglGetClipboardType(const PuglView* const PUGL_UNUSED(view),
PuglStatus
puglAcceptOffer(PuglView* const view,
const PuglDataOfferEvent* const PUGL_UNUSED(offer),
- const uint32_t typeIndex)
+ const uint32_t typeIndex,
+ const PuglRect region)
{
if (typeIndex != 0) {
return PUGL_UNSUPPORTED;
@@ -1375,6 +1376,8 @@ puglAcceptOffer(PuglView* const view,
PUGL_DATA,
0,
GetMessageTime() / 1e3,
+ (double)region.x,
+ (double)region.y,
0,
};
@@ -1469,6 +1472,8 @@ puglPaste(PuglView* const view)
PUGL_DATA_OFFER,
0,
GetMessageTime() / 1e3,
+ 0.0,
+ 0.0,
};
PuglEvent offerEvent;