Common code by the gui library: make sure the screen array is ready
| 3497 | |
| 3498 | // Common code by the gui library: make sure the screen array is ready |
| 3499 | static 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)) |
no test coverage detected