/** * @fn static void gpsd_viewer_osd_render (OsmGpsMapLayer *osd, OsmGpsMap *map) * @brief Overwrite the original _render handler of the OsmGpsMap layer. */ static void gpsd_viewer_osd_render (OsmGpsMapLayer *osd, OsmGpsMap *map) { GpsdViewerOsd *self; GpsdViewerOsdPrivate *priv; g_return_if_fail(IS_GPSD_VIEWER_OSD(osd)); self = GPSD_VIEWER_OSD(osd); priv = self->priv; drone_render(self, map); if (priv->show_scale) scale_render(self, map); if (priv->show_coordinates) coordinates_render(self, map); if (priv->show_zoom || priv->show_dpad) controls_render(self, map); }
static void osm_gps_map_osd_render (OsmGpsMapLayer *osd, OsmGpsMap *map) { OsmGpsMapOsd *self; OsmGpsMapOsdPrivate *priv; g_return_if_fail(OSM_IS_GPS_MAP_OSD(osd)); self = OSM_GPS_MAP_OSD(osd); priv = self->priv; if (priv->show_scale) scale_render(self, map); if (priv->show_coordinates) coordinates_render(self, map); if (priv->show_crosshair) crosshair_render(self, map); if (priv->show_zoom || priv->show_dpad) controls_render(self, map); }