diff options
Diffstat (limited to 'src/x11_in_gtk3.c')
-rw-r--r-- | src/x11_in_gtk3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x11_in_gtk3.c b/src/x11_in_gtk3.c index 9f6e928..7faab02 100644 --- a/src/x11_in_gtk3.c +++ b/src/x11_in_gtk3.c @@ -217,7 +217,7 @@ forward_size_request(SuilX11Wrapper* socket, // Resize widget window XResizeWindow(GDK_WINDOW_XDISPLAY(window), (Window)socket->instance->ui_widget, - width, height); + (unsigned)width, (unsigned)height); // Get actual widget geometry Window root; @@ -231,8 +231,8 @@ forward_size_request(SuilX11Wrapper* socket, &ignored, &ignored); // Center widget in allocation - wx = (allocation->width - ww) / 2; - wy = (allocation->height - wh) / 2; + wx = (allocation->width - (int)ww) / 2; + wy = (allocation->height - (int)wh) / 2; XMoveWindow(GDK_WINDOW_XDISPLAY(window), (Window)socket->instance->ui_widget, wx, wy); @@ -466,7 +466,7 @@ suil_wrapper_new(SuilHost* host, LV2_URID ui_updateRate = map->map(map->handle, LV2_UI__updateRate); for (LV2_Options_Option* o = options; o->key; ++o) { if (o->key == ui_updateRate) { - wrap->idle_ms = 1000.0f / *(const float*)o->value; + wrap->idle_ms = (guint)(1000.0f / *(const float*)o->value); break; } } |