summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.c
diff options
context:
space:
mode:
authorDr.Smile <vabnick@gmail.com>2017-09-17 03:39:11 +0300
committerDr.Smile <vabnick@gmail.com>2017-09-17 04:07:20 +0300
commitad6510b9c78f5c79f7492b608912dc5281e15e47 (patch)
tree245c655bd8f0b4c4a2884d941509c965dc8778bd /libass/ass_bitmap.c
parent71cf4e3b6328cdac390cdc84fa9c289224e2179d (diff)
downloadlibass-ad6510b9c78f5c79f7492b608912dc5281e15e47.tar.bz2
libass-ad6510b9c78f5c79f7492b608912dc5281e15e47.tar.xz
Consolidate bounding box operations
Diffstat (limited to 'libass/ass_bitmap.c')
-rw-r--r--libass/ass_bitmap.c10
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;