From ca388247ce23b9a45dd24e5e3a30e3ff9d6d0c2c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 4 Dec 2021 23:22:35 +0100 Subject: [PATCH] lua_cc_picture: don't use any corner modes for images Only for compatibility with old behavior before api < 1.94 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/5aec07aae04a28ac8dc158744771f66232b63be1 Author: Thilo Graf Date: 2021-12-04 (Sat, 04 Dec 2021) --- src/gui/lua/lua_cc_picture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/lua/lua_cc_picture.cpp b/src/gui/lua/lua_cc_picture.cpp index 63f8766e3..5715b3298 100644 --- a/src/gui/lua/lua_cc_picture.cpp +++ b/src/gui/lua/lua_cc_picture.cpp @@ -127,6 +127,7 @@ int CLuaInstCCPicture::CCPictureNew(lua_State *L) (*udata)->cp = new CComponentsPicture(x, y, dx, dy, image_name, pw, has_shadow, (fb_pixel_t)color_frame, (fb_pixel_t)color_background, (fb_pixel_t)color_shadow, transparency); (*udata)->cp->doPaintBg(true); + (*udata)->cp->setCornerType(CORNER_NONE); (*udata)->parent = pw; luaL_getmetatable(L, LUA_CPICTURE); lua_setmetatable(L, -2);