Example #1
0
// Save
void
Prefs::Save()
{
	if (!PutBool("interlaced", &interlaced)) return;
	if (!PutBool("usetransparent", &usetransparent)) return;
	if (!PutBool("usetransparentauto", &usetransparentauto)) return;
	if (!PutBool("usedithering", &usedithering)) return;
	if (!PutInt("palettemode", &palettemode)) return;
	if (!PutInt("palettesize", &palette_size_in_bits)) return;
	if (!PutInt("transparentred", &transparentred)) return;
	if (!PutInt("transparentgreen", &transparentgreen)) return;
	if (!PutInt("transparentblue", &transparentblue)) return;
}
Example #2
0
bool
Prefs::Save()
{
	if (fFatalError)
		return false;

	if (!PutInt("window_mode", &window_mode)
		|| !PutRect("normal_window_rect", &normal_window_rect)
		|| !PutRect("mini_window_rect", &mini_window_rect)
		|| !PutRect("prefs_window_rect", &prefs_window_rect)
		|| !PutInt("normal_bar_color", &normal_bar_color)
		|| !PutInt("mini_active_color", &mini_active_color)
		|| !PutInt("mini_idle_color", &mini_idle_color)
		|| !PutInt("mini_frame_color", &mini_frame_color)
		|| !PutInt("deskbar_active_color", &deskbar_active_color)
		|| !PutInt("deskbar_idle_color", &deskbar_idle_color)
		|| !PutInt("deskbar_frame_color", &deskbar_frame_color)
		|| !PutBool("normal_fade_colors", &normal_fade_colors)
		|| !PutInt("deskbar_icon_width", &deskbar_icon_width))
		return false;

	return true;
}