lua_cc_picture: don't use any corner modes for images

Only for compatibility with old behavior before api < 1.94
This commit is contained in:
2021-12-04 13:21:19 +01:00
parent 1eb1c029f4
commit 61e74e24ea

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);