mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user