MCPcopy Create free account
hub / github.com/DFHack/dfhack / resize

Method resize

library/modules/Screen.cpp:1086–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084}
1085
1086void dfhack_lua_viewscreen::resize(int w, int h)
1087{
1088 if (Screen::isDismissed(this)) return;
1089
1090 auto L = DFHack::Core::getInstance().getLuaState();
1091 lua_pushstring(L, "onResize");
1092 lua_pushinteger(L, w);
1093 lua_pushinteger(L, h);
1094 safe_call_lua(do_notify, 3, 0);
1095}
1096
1097void dfhack_lua_viewscreen::feed(std::set<df::interface_key> *keys)
1098{

Callers 15

stl_vsprintfFunction · 0.45
UTF2DFFunction · 0.45
method_container_resizeFunction · 0.45
load_fileFunction · 0.45
makeSquadMethod · 0.45
removeJobMethod · 0.45
allocInstanceMethod · 0.45
ReadGeologyMethod · 0.45
MapCacheMethod · 0.45
TESTFunction · 0.45
RollbackMethod · 0.45
BuildEnumValueMethod · 0.45

Calls 2

lua_pushstringFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36