diff options
author | Dr.Smile <vabnick@gmail.com> | 2017-09-17 03:39:11 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2017-09-17 04:07:20 +0300 |
commit | ad6510b9c78f5c79f7492b608912dc5281e15e47 (patch) | |
tree | 245c655bd8f0b4c4a2884d941509c965dc8778bd /libass/ass_bitmap.c | |
parent | 71cf4e3b6328cdac390cdc84fa9c289224e2179d (diff) | |
download | libass-ad6510b9c78f5c79f7492b608912dc5281e15e47.tar.bz2 libass-ad6510b9c78f5c79f7492b608912dc5281e15e47.tar.xz |
Consolidate bounding box operations
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; |