/**
 * \brief Configure the root GUI window
 *
 * Configures the root window background to be a tiled version of the
 * Atmel company logo, and sets it as being visible.
 */
static void setup_gui_root_window(void)
{
	struct win_attributes root_attr;
	struct win_window *win_root;

	win_root = win_get_root();
	root_attr = *win_get_attributes(win_root);
	root_attr.background = &atmel_logo_small;
	win_set_attributes(win_root, &root_attr, WIN_ATTR_BACKGROUND);

	win_show(win_root);
}
Beispiel #2
0
/**
 * \brief Set up and show the root window
 */
static void setup_root_window(void)
{
	struct win_window *win_root;
	struct win_attributes attr;

	win_root = win_get_root();
	attr = *win_get_attributes(win_root);
	attr.background = NULL;

	win_set_attributes(win_root, &attr, WIN_ATTR_BACKGROUND);
	win_show(win_root);
}