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:
void set_default_image_overlay_template_string(ConfOptions *options);
void image_osd_set(ImageWindow *imd, OsdShowFlags show);
-gint image_osd_get(ImageWindow *imd, OsdShowFlags *show);
+OsdShowFlags image_osd_get(ImageWindow *imd);
void image_osd_update(ImageWindow *imd);
if (vw->fs)
{
- if (image_osd_get(vw->fs->imd, NULL))
- {
- image_osd_set(vw->imd, OSD_SHOW_INFO | OSD_SHOW_STATUS);
- }
-
+ if (image_osd_get(vw->imd) & OSD_SHOW_INFO)
+ image_osd_set(vw->imd, image_osd_get(vw->fs->imd));
+
fullscreen_stop(vw->fs);
}
else
if (vw->ss) vw->ss->imd = vw->fs->imd;
- if (image_osd_get(vw->imd, NULL))
+ if (image_osd_get(vw->imd) & OSD_SHOW_INFO)
{
+ image_osd_set(vw->fs->imd, image_osd_get(vw->imd));
image_osd_set(vw->imd, OSD_SHOW_NOTHING);
- image_osd_set(vw->fs->imd, OSD_SHOW_INFO | OSD_SHOW_STATUS);
}
}
}
if (lw->tools) gtk_widget_set_sensitive(lw->tools, FALSE);
#endif
- if (image_osd_get(lw->full_screen->normal_imd, NULL))
+ if (image_osd_get(lw->full_screen->normal_imd) & OSD_SHOW_INFO)
{
- image_osd_set(lw->image, OSD_SHOW_INFO | OSD_SHOW_STATUS);
+ image_osd_set(lw->image, image_osd_get(lw->full_screen->normal_imd));
image_osd_set(lw->full_screen->normal_imd, OSD_SHOW_NOTHING);
}
}
if (!layout_valid(&lw)) return;
if (!lw->full_screen) return;
- if (image_osd_get(lw->image, NULL))
- {
- image_osd_set(lw->full_screen->normal_imd, OSD_SHOW_STATUS);
- }
+ if (image_osd_get(lw->full_screen->normal_imd) & OSD_SHOW_INFO)
+ image_osd_set(lw->full_screen->normal_imd, image_osd_get(lw->image));
+
fullscreen_stop(lw->full_screen);
#if 0
&options->layout.main_window.w, &options->layout.main_window.h);
}
- image_osd_get(lw->image, &options->image_overlay.common.enabled);
+ options->image_overlay.common.enabled = image_osd_get(lw->image);
}
layout_geometry_get_dividers(NULL, &options->layout.main_window.hdivider_pos, &options->layout.main_window.vdivider_pos);