diff options
Diffstat (limited to 'libass/ass_bitmap.c')
-rw-r--r-- | libass/ass_bitmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index 7d991bf..cc40ed6 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -202,13 +202,13 @@ Bitmap *outline_to_bitmap(ASS_Renderer *render_priv, if (bord < 0 || bord > INT_MAX / 2) return NULL; - if (rst->x_max > INT_MAX - 63 || rst->y_max > INT_MAX - 63) + if (rst->bbox.x_max > INT_MAX - 63 || rst->bbox.y_max > INT_MAX - 63) return NULL; - int x_min = rst->x_min >> 6; - int y_min = rst->y_min >> 6; - int x_max = (rst->x_max + 63) >> 6; - int y_max = (rst->y_max + 63) >> 6; + int x_min = rst->bbox.x_min >> 6; + int y_min = rst->bbox.y_min >> 6; + int x_max = (rst->bbox.x_max + 63) >> 6; + int y_max = (rst->bbox.y_max + 63) >> 6; int w = x_max - x_min; int h = y_max - y_min; |