aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-15 23:09:26 +0100
committerDavid Robillard <d@drobilla.net>2019-02-16 16:56:50 +0100
commit26e312ac1083987d42cf028ea511b8703c984a7a (patch)
tree0252e4d97dd2795fedc1c0fb52c8b30c74a4ad3c /pugl
parent539c1ddd4029f4ea62368c45955d0c1f6bca4006 (diff)
downloadpugl-26e312ac1083987d42cf028ea511b8703c984a7a.tar.gz
pugl-26e312ac1083987d42cf028ea511b8703c984a7a.tar.bz2
pugl-26e312ac1083987d42cf028ea511b8703c984a7a.zip
Fix implicit double to int casts
Diffstat (limited to 'pugl')
-rw-r--r--pugl/pugl_internal.h4
-rw-r--r--pugl/pugl_x11.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index ce79d2a..2b09761 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -196,8 +196,8 @@ puglDispatchEvent(PuglView* view, const PuglEvent* event)
case PUGL_NOTHING:
break;
case PUGL_CONFIGURE:
- view->width = event->configure.width;
- view->height = event->configure.height;
+ view->width = (int)event->configure.width;
+ view->height = (int)event->configure.height;
puglEnterContext(view);
view->eventFunc(view, event);
puglLeaveContext(view, false);
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 3a8cead..2755aa0 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -493,8 +493,8 @@ puglProcessEvents(PuglView* view)
if (config_event.type) {
// Resize drawing context before dispatching
view->impl->ctx.resize(view,
- config_event.configure.width,
- config_event.configure.height);
+ (int)config_event.configure.width,
+ (int)config_event.configure.height);
puglDispatchEvent(view, (const PuglEvent*)&config_event);
}