From ce626837d8b2a15cb898a1e09ae83075ce6ae5c3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 14 Sep 2016 16:20:32 +0200 Subject: Use correct stride value (thanks to rgareus for pointing this out). --- pluginlv2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginlv2.cc b/pluginlv2.cc index 2fe98ad..0d9a50b 100644 --- a/pluginlv2.cc +++ b/pluginlv2.cc @@ -464,7 +464,7 @@ LV2_Inline_Display_Image_Surface* PluginLV2::inlineRender(LV2_Handle instance, plugin_lv2->surf.width = plugin_lv2->drawContext.width; plugin_lv2->surf.height = plugin_lv2->drawContext.height; - plugin_lv2->surf.stride = 0; + plugin_lv2->surf.stride = plugin_lv2->surf.width * 4; // stride is in bytes plugin_lv2->surf.data = plugin_lv2->drawContext.data; -- cgit v1.2.3