diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-09-14 16:20:32 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-09-14 16:20:32 +0200 |
commit | ce626837d8b2a15cb898a1e09ae83075ce6ae5c3 (patch) | |
tree | 577aeca4ee248cdae31e36371e594d0b0beae161 | |
parent | 492d1e617cc8ac392784c3b4daa2bcfc79e4415f (diff) |
Use correct stride value (thanks to rgareus for pointing this out).
-rw-r--r-- | pluginlv2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |