]> Pileus Git - aweather/blobdiff - src/plugins/radar.c
Libgis updates
[aweather] / src / plugins / radar.c
index 7a1bf45f2130adadf5d75ef9073050c55b633e12..62d6dc02e8af26a1bad550a6c811b8af299eacbf 100644 (file)
 #include "../aweather-location.h"
 
 /* Drawing functions */
-static gpointer _draw_hud(GisCallback *callback, gpointer _self)
+static void _draw_hud(GisCallback *callback, gpointer _self)
 {
        GisPluginRadar *self = GIS_PLUGIN_RADAR(_self);
        if (!self->colormap)
-               return NULL;
+               return;
 
        g_debug("GisPluginRadar: _draw_hud");
        /* Print the color table */
@@ -56,8 +56,6 @@ static gpointer _draw_hud(GisCallback *callback, gpointer _self)
                glVertex3f(-0.9, (float)((i  ) - 256/2)/(256/2), 0.0); // bot right
        }
        glEnd();
-
-       return NULL;
 }