]> granicus.if.org Git - libass/commitdiff
Move render_id into ass_renderer
authorGrigori Goronzy <greg@blackbox>
Thu, 23 Jul 2009 01:23:28 +0000 (03:23 +0200)
committerGrigori Goronzy <greg@blackbox>
Fri, 24 Jul 2009 13:38:37 +0000 (15:38 +0200)
The render_id (last_render_id) variable was the last remaining static
data object; move it into render_priv.

libass/ass_render.c

index de7d262e33df7210f130848ad1e40bdc0eab4057..e0a8d363a9d86bbb594e9da5cdd05fca8909d703 100644 (file)
@@ -47,8 +47,6 @@
 #define GLYPH_CACHE_MAX 1000
 #define BITMAP_CACHE_MAX_SIZE 50 * 1048576;
 
-static int last_render_id = 0;
-
 typedef struct double_bbox_s {
     double xMin;
     double xMax;
@@ -3140,7 +3138,7 @@ static void ass_free_images(ass_image_t *img)
 
 static void ass_reconfigure(ass_renderer_t *priv)
 {
-    priv->render_id = ++last_render_id;
+    priv->render_id++;
     priv->cache.glyph_cache =
         ass_glyph_cache_reset(priv->cache.glyph_cache);
     priv->cache.bitmap_cache =