MCPcopy Create free account
hub / github.com/TASEmulators/fceux / gui_prepare

Function gui_prepare

src/lua-engine.cpp:3499–3505  ·  view source on GitHub ↗

Common code by the gui library: make sure the screen array is ready

Source from the content-addressed store, hash-verified

3497
3498// Common code by the gui library: make sure the screen array is ready
3499static void gui_prepare() {
3500 if (!gui_data)
3501 gui_data = (uint8*) FCEU_dmalloc(LUA_SCREEN_WIDTH*LUA_SCREEN_HEIGHT*4);
3502 if (gui_used != GUI_USED_SINCE_LAST_DISPLAY)
3503 memset(gui_data, 0, LUA_SCREEN_WIDTH*LUA_SCREEN_HEIGHT*4);
3504 gui_used = GUI_USED_SINCE_LAST_DISPLAY;
3505}
3506
3507// pixform for lua graphics
3508#define BUILD_PIXEL_ARGB8888(A,R,G,B) (((int) (A) << 24) | ((int) (R) << 16) | ((int) (G) << 8) | (int) (B))

Callers 7

gui_pixelFunction · 0.85
gui_lineFunction · 0.85
gui_boxFunction · 0.85
gui_box_oldFunction · 0.85
LuaDisplayStringFunction · 0.85
gui_textFunction · 0.85
gui_gdoverlayFunction · 0.85

Calls 1

FCEU_dmallocFunction · 0.85

Tested by

no test coverage detected