aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-07 10:13:59 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-07 10:13:59 +0200
commit9e6243811af834c6121c81f43b91988995814513 (patch)
tree56493b7446a3c55a202fb1e08d07d7a5bc2ebb06
parentfaa042004636a1a47a2ddbd52811f97490c10259 (diff)
parent79cc7449ebf50150ce114fa9a9c080a3851a3031 (diff)
downloadchim.lv2-9e6243811af834c6121c81f43b91988995814513.tar.xz
Merge commit '79cc7449ebf50150ce114fa9a9c080a3851a3031'
-rw-r--r--canvas.lv2/canvas.lv2/idisp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas.lv2/canvas.lv2/idisp.h b/canvas.lv2/canvas.lv2/idisp.h
index afe7371..099ab2c 100644
--- a/canvas.lv2/canvas.lv2/idisp.h
+++ b/canvas.lv2/canvas.lv2/idisp.h
@@ -44,7 +44,7 @@ _lv2_canvas_idisp_surf_init(LV2_Canvas_Idisp *idisp, int w, int h)
LV2_Inline_Display_Image_Surface *surf = &idisp->image_surface;
surf->width = w;
- surf->height = w > h ? h : w; // try to use 1:1 ratio
+ surf->height = h;
surf->stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, surf->width);
surf->data = realloc(surf->data, surf->stride * surf->height);
if(!surf->data)
@@ -113,7 +113,7 @@ lv2_canvas_idisp_surf_configure(LV2_Canvas_Idisp *idisp,
W = w;
H = w / aspect_ratio;
}
- else // aspect_ratio == 0.f
+ else // aspect_ratio == 1.f
{
W = w;
H = h;