diff options
author | Oneric <oneric@oneric.stub> | 2020-10-22 00:51:56 +0200 |
---|---|---|
committer | TheOneric <Oneric@oneric.de> | 2020-10-22 19:54:29 +0200 |
commit | 6a956a5a234b0508c0ec23540c5217910d97dd08 (patch) | |
tree | 123227775c2253000edb4064f465b1b75373a74b /libass/ass_render.h | |
parent | 3e4c70206e6de15d9531edc718a11ad81e973754 (diff) | |
download | libass-6a956a5a234b0508c0ec23540c5217910d97dd08.tar.bz2 libass-6a956a5a234b0508c0ec23540c5217910d97dd08.tar.xz |
ass_render: Replace Segment with Rect
Contrary to what the comments suggest Segment does not use one
absolute reference point and relative offsets, but two absolute points,
making it practically identical to the previously defined Rect with
a <-> y0, b <-> y1, ha <-> x0, hb <-> x1
For simplicity replace Segment with Rect.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r-- | libass/ass_render.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h index 359152a..5208f04 100644 --- a/libass/ass_render.h +++ b/libass/ass_render.h @@ -334,11 +334,6 @@ typedef struct { int y1; } Rect; -typedef struct { - int a, b; // top and height - int ha, hb; // left and width -} Segment; - void reset_render_context(ASS_Renderer *render_priv, ASS_Style *style); void ass_frame_ref(ASS_Image *img); void ass_frame_unref(ASS_Image *img); |