summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-23 03:23:28 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-24 15:38:37 +0200
commit08d40f78a23c729fa493a7a8aa28b131e65caeb7 (patch)
tree0128f43673d9db29b9e78a4bd19e8837df33dda4
parentb3bcb8e120d1a15f258211e78346407e9a2b35d2 (diff)
downloadlibass-08d40f78a23c729fa493a7a8aa28b131e65caeb7.tar.bz2
libass-08d40f78a23c729fa493a7a8aa28b131e65caeb7.tar.xz
Move render_id into ass_renderer
The render_id (last_render_id) variable was the last remaining static data object; move it into render_priv.
-rw-r--r--libass/ass_render.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index de7d262e..e0a8d363 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -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 =