diff options
author | David Robillard <d@drobilla.net> | 2021-01-25 12:28:32 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-25 12:28:32 +0100 |
commit | e497eea68ca704f62d3a65f1bbe787167cd3ae3e (patch) | |
tree | 4837b49783eb092679c1292ec1de46816572ec5c /src | |
parent | 4e29afc7d221fda34d9ee22eee8be71ab5c3e97d (diff) | |
download | pugl-e497eea68ca704f62d3a65f1bbe787167cd3ae3e.tar.gz pugl-e497eea68ca704f62d3a65f1bbe787167cd3ae3e.tar.bz2 pugl-e497eea68ca704f62d3a65f1bbe787167cd3ae3e.zip |
Fix warnings when compiling for X11 as C++
Diffstat (limited to 'src')
-rw-r--r-- | src/x11.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1119,8 +1119,12 @@ puglDispatchX11Events(PuglWorld* world) XWindowAttributes attrs; XGetWindowAttributes(view->impl->display, view->impl->win, &attrs); - const PuglEventConfigure configure = { - PUGL_CONFIGURE, 0, attrs.x, attrs.y, attrs.width, attrs.height}; + const PuglEventConfigure configure = {PUGL_CONFIGURE, + 0, + (double)attrs.x, + (double)attrs.y, + (double)attrs.width, + (double)attrs.height}; puglDispatchEvent(view, (const PuglEvent*)&configure); puglDispatchEvent(view, &event); |