load_func, user_data);
}
+static void _grits_tile_queue_draw(GritsTile *tile)
+{
+ while (!GRITS_OBJECT(tile)->viewer && tile->parent)
+ tile = tile->parent;
+ grits_object_queue_draw(GRITS_OBJECT(tile));
+}
+
/**
* grits_tile_load_pixels:
* @tile: the tile to load data into
tile->pixels = pixels;
/* Queue OpenGL texture load/draw */
- grits_object_queue_draw(GRITS_OBJECT(tile));
+ _grits_tile_queue_draw(tile);
+
return TRUE;
}
tile->alpha = gdk_pixbuf_get_has_alpha(pixbuf);
/* Queue OpenGL texture load/draw */
- grits_object_queue_draw(GRITS_OBJECT(tile));
+ _grits_tile_queue_draw(tile);
return TRUE;
}
tile->alpha = gdk_pixbuf_get_has_alpha(tile->pixbuf);
/* Queue OpenGL texture load/draw */
- grits_object_queue_draw(GRITS_OBJECT(tile));
+ _grits_tile_queue_draw(tile);
return TRUE;
}