From 6e5c9dbaf81787b60b8a083c4a251be5e63824cf Mon Sep 17 00:00:00 2001 From: Alex Forsythe Date: Sat, 4 May 2019 01:02:32 -0500 Subject: [PATCH] Clarify parameter names for gui.setlayermask This is a tiny follow-up to PR #273, with no actual changes in functionality. In short: - gui.setlayermask(top, bottom) -> gui.setlayermask(main, sub) Display layers correspond to GPU (main or sub), not to screen (top or bottom), so this change just updates the Lua parameter names to reflect that. --- desmume/src/lua-engine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/desmume/src/lua-engine.cpp b/desmume/src/lua-engine.cpp index 92527117f..b9baed033 100644 --- a/desmume/src/lua-engine.cpp +++ b/desmume/src/lua-engine.cpp @@ -3279,16 +3279,16 @@ DEFINE_LUA_FUNCTION(gui_settransparency, "transparency_4_to_0") return 0; } -// gui.setlayermask(int top, int bottom) -// enables or disables display layers for each screen according to the bitfields provided +// gui.setlayermask(int main, int sub) +// enables or disables display layers for each GPU according to the bitfields provided // e.g. 31 (11111) shows all layers; 0 (00000) hides all layers; 16 (10000) shows only the object layer (layer 4) // this function is only supported by the windows frontend. -DEFINE_LUA_FUNCTION(gui_setlayermask, "top,bottom") +DEFINE_LUA_FUNCTION(gui_setlayermask, "main,sub") { #if defined(WIN32) - lua_Integer top = luaL_checkint(L, 1); - lua_Integer bottom = luaL_checkint(L, 2); - SetLayerMasks(top, bottom); + lua_Integer main = luaL_checkint(L, 1); + lua_Integer sub = luaL_checkint(L, 2); + SetLayerMasks(main, sub); #endif return 0; }