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: 5aec07aae0
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-12-04 (Sat, 04 Dec 2021)
This commit is contained in:
2021-12-04 23:22:35 +01:00
committed by vanhofen
parent dc93b3c225
commit ca388247ce

View File

@@ -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 = 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->doPaintBg(true);
(*udata)->cp->setCornerType(CORNER_NONE);
(*udata)->parent = pw; (*udata)->parent = pw;
luaL_getmetatable(L, LUA_CPICTURE); luaL_getmetatable(L, LUA_CPICTURE);
lua_setmetatable(L, -2); lua_setmetatable(L, -2);