mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
lua cwindow.new: Fix draw small windows
- Ignore percent conversion of width and height
to remain compatible with the Lua API
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2d30ef10d8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-28 (Tue, 28 Feb 2017)
Origin message was:
------------------
lua cwindow.new: Fix draw small windows
- Ignore percent conversion of width and height
to remain compatible with the Lua API
------------------
This commit was generated by Migit
This commit is contained in:
@@ -127,6 +127,10 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
|
|||||||
CLuaCCWindow **udata = (CLuaCCWindow **) lua_newuserdata(L, sizeof(CLuaCCWindow *));
|
CLuaCCWindow **udata = (CLuaCCWindow **) lua_newuserdata(L, sizeof(CLuaCCWindow *));
|
||||||
*udata = new CLuaCCWindow();
|
*udata = new CLuaCCWindow();
|
||||||
(*udata)->w = new CComponentsWindow(x, y, dx, dy, name.c_str(), icon.c_str(), 0, has_shadow, (fb_pixel_t)color_frame, (fb_pixel_t)color_body, (fb_pixel_t)color_shadow);
|
(*udata)->w = new CComponentsWindow(x, y, dx, dy, name.c_str(), icon.c_str(), 0, has_shadow, (fb_pixel_t)color_frame, (fb_pixel_t)color_body, (fb_pixel_t)color_shadow);
|
||||||
|
/* Ignore percent conversion of width and height
|
||||||
|
to remain compatible with the Lua API */
|
||||||
|
(*udata)->w->setWidth(dx);
|
||||||
|
(*udata)->w->setHeight(dy);
|
||||||
|
|
||||||
if (!show_header)
|
if (!show_header)
|
||||||
(*udata)->w->showHeader(false);
|
(*udata)->w->showHeader(false);
|
||||||
|
Reference in New Issue
Block a user