diff src/image-overlay.c @ 621:734b6b0a3356

image_osd_get() now returns OsdShowFlags.
author zas_
date Sat, 10 May 2008 14:22:18 +0000
parents f335373f44e5
children 54e20abb5c6d
line wrap: on
line diff
--- a/src/image-overlay.c	Sat May 10 13:54:25 2008 +0000
+++ b/src/image-overlay.c	Sat May 10 14:22:18 2008 +0000
@@ -845,19 +845,11 @@
 	image_osd_enable(imd, show);
 }
 
-gint image_osd_get(ImageWindow *imd, OsdShowFlags *show)
+OsdShowFlags image_osd_get(ImageWindow *imd)
 {
 	OverlayStateData *osd = image_get_osd_data(imd);
 
-	if (!osd)
-		{
-		if (show) *show = OSD_SHOW_NOTHING;
-		return FALSE;
-		}
-
-	if (show) *show = osd->show;
-
-	return TRUE;
+	return osd ? osd->show : OSD_SHOW_NOTHING;
 }
 
 /* duration: