remove not working opacity method

This commit is contained in:
SwissalpS 2020-07-04 19:56:04 +02:00
parent 7d80cdcaa2
commit 4dc0e73cbe
1 changed files with 3 additions and 1 deletions

View File

@ -56,12 +56,14 @@ static int f_set_window_mode(lua_State *L) {
// does not seem to work on Fedora Gnome Wayland // does not seem to work on Fedora Gnome Wayland
// it returns true but visually nothing changes // it returns true but visually nothing changes
// possibly bc the view paints solid? // possibly bc the view paints solid?
/*
static int f_set_window_opacity(lua_State *L) { static int f_set_window_opacity(lua_State *L) {
double n = luaL_checknumber(L, 1); double n = luaL_checknumber(L, 1);
int r = SDL_SetWindowOpacity(window, n); int r = SDL_SetWindowOpacity(window, n);
lua_pushboolean(L, r > -1); lua_pushboolean(L, r > -1);
return 1; return 1;
} }
*/
static int f_set_window_position(lua_State *L) { static int f_set_window_position(lua_State *L) {
@ -133,7 +135,7 @@ static const luaL_Reg lib[] = {
{ "get_position", f_get_window_position }, { "get_position", f_get_window_position },
{ "get_size", f_get_window_size }, { "get_size", f_get_window_size },
{ "set_mode", f_set_window_mode }, { "set_mode", f_set_window_mode },
{ "set_opacity", f_set_window_opacity }, // { "set_opacity", f_set_window_opacity },
{ "set_position", f_set_window_position }, { "set_position", f_set_window_position },
{ "set_size", f_set_window_size }, { "set_size", f_set_window_size },
{ "set_title", f_set_window_title }, { "set_title", f_set_window_title },