comparison src/image-overlay.c @ 618:b1a922a32d9c

Save full OSD state to rc file and restore it on startup. It allows to restore OSD with or without histogram depending on previous state.
author zas_
date Sat, 10 May 2008 09:00:14 +0000
parents aa883b6d2ef6
children f335373f44e5
comparison
equal deleted inserted replaced
617:aa883b6d2ef6 618:b1a922a32d9c
827 827
828 gint image_osd_get(ImageWindow *imd, OsdShowFlags *show) 828 gint image_osd_get(ImageWindow *imd, OsdShowFlags *show)
829 { 829 {
830 OverlayStateData *osd = image_get_osd_data(imd); 830 OverlayStateData *osd = image_get_osd_data(imd);
831 831
832 if (!osd) return FALSE; 832 if (!osd)
833 {
834 if (show) *show = OSD_SHOW_NOTHING;
835 return FALSE;
836 }
833 837
834 if (show) *show = osd->show; 838 if (show) *show = osd->show;
835 839
836 return TRUE; 840 return TRUE;
837 } 841 }