mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
lua: fix app.fg/bgColor to get the color value with convert_args_into_color()
This commit is contained in:
parent
fe9f8bc468
commit
fdac96153b
@ -235,7 +235,7 @@ int App_get_fgColor(lua_State* L)
|
||||
|
||||
int App_set_fgColor(lua_State* L)
|
||||
{
|
||||
Preferences::instance().colorBar.fgColor(*get_obj<app::Color>(L, 2));
|
||||
Preferences::instance().colorBar.fgColor(convert_args_into_color(L, 2));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -247,7 +247,7 @@ int App_get_bgColor(lua_State* L)
|
||||
|
||||
int App_set_bgColor(lua_State* L)
|
||||
{
|
||||
Preferences::instance().colorBar.bgColor(*get_obj<app::Color>(L, 2));
|
||||
Preferences::instance().colorBar.bgColor(convert_args_into_color(L, 2));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user