/* Show an out of memory error on the display. 
Shows a full screen error when called, signaling that the system ran out of memory when initializing a WTK application.  */
static void show_out_of_memory_error(void)
/* Show an out of memory error on the display. 
Shows a full screen error when called, signaling that the system ran out of memory when initializing a WTK application.  */
static void show_out_of_memory_error(void)
{
	const char memory_string[] = "OUT OF MEMORY";
	gfx_coord_t disp_width, disp_height;
	disp_width  = gfx_get_width();
	disp_height = gfx_get_height();
	gfx_set_clipping(0, 0, disp_width, disp_height);
	gfx_draw_filled_rect(0, 0, disp_width, disp_height, GFX_COLOR_BLACK);
	gfx_draw_string_aligned(memory_string,
		disp_width / 2, disp_height / 2,
		&sysfont,
		GFX_COLOR_TRANSPARENT, GFX_COLOR_RED,
		TEXT_POS_CENTER, TEXT_ALIGN_CENTER);
}