/* * Updates the display device page to reflect the current * configuration of the display device. */ static void display_device_setup(CtkDisplayDevice *ctk_object) { CtrlTarget *ctrl_target = ctk_object->ctrl_target; /* Disable the reset button here and allow the controls below to (re)enable * it if need be,. */ gtk_widget_set_sensitive(ctk_object->reset_button, FALSE); update_display_enabled_flag(ctrl_target, &ctk_object->display_enabled); /* Update info */ update_device_info(ctk_object); ctk_edid_setup(CTK_EDID(ctk_object->edid)); /* Update controls */ ctk_color_controls_setup(CTK_COLOR_CONTROLS(ctk_object->color_controls)); ctk_dithering_controls_setup (CTK_DITHERING_CONTROLS(ctk_object->dithering_controls)); ctk_image_sliders_setup(CTK_IMAGE_SLIDERS(ctk_object->image_sliders)); } /* display_device_setup() */
/* * Updates the display device TV page to reflect the current * configuration of the display device. */ static void ctk_display_device_tv_setup(CtkDisplayDeviceTv *ctk_display_device_tv) { /* Disable the reset button here and allow the controls below to (re)enable * it if need be,. */ gtk_widget_set_sensitive(ctk_display_device_tv->reset_button, FALSE); /* Update info */ tv_info_setup(ctk_display_device_tv); /* update acquire EDID button */ ctk_edid_setup(CTK_EDID(ctk_display_device_tv->edid)); /* Update controls */ /* NV_CTRL_TV_OVERSCAN */ setup_scale(ctk_display_device_tv, NV_CTRL_TV_OVERSCAN, ctk_display_device_tv->overscan); /* NV_CTRL_TV_FLICKER_FILTER */ setup_scale(ctk_display_device_tv, NV_CTRL_TV_FLICKER_FILTER, ctk_display_device_tv->flicker_filter); /* NV_CTRL_TV_BRIGHTNESS */ setup_scale(ctk_display_device_tv, NV_CTRL_TV_BRIGHTNESS, ctk_display_device_tv->brightness); /* NV_CTRL_TV_HUE */ setup_scale(ctk_display_device_tv, NV_CTRL_TV_HUE, ctk_display_device_tv->hue); /* NV_CTRL_TV_CONTRAST */ setup_scale(ctk_display_device_tv, NV_CTRL_TV_CONTRAST, ctk_display_device_tv->contrast); /* NV_CTRL_TV_SATURATION */ setup_scale(ctk_display_device_tv, NV_CTRL_TV_SATURATION, ctk_display_device_tv->saturation); ctk_image_sliders_setup (CTK_IMAGE_SLIDERS(ctk_display_device_tv->image_sliders)); } /* ctk_display_device_tv_setup() */