2 #include "framebuffer.hpp"
6 function_ptr_luafun
lua_gui_screenshot("gui.screenshot", [](lua_State
* LS
, const std::string
& fname
) -> int {
7 std::string fn
= get_string_argument(LS
, 1, fname
.c_str());
9 framebuffer
.save_png(fn
);
11 } catch(std::exception
& e
) {
12 lua_pushstring(LS
, e
.what());