diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-07-18 11:33:00 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-07-18 11:33:00 +0000 |
commit | 380fc1a76316865af7cc72dab1868760260a33e5 (patch) | |
tree | 0248e45731f85a0aaa15503aba97cfb3bc264ff1 /libass | |
parent | 9dc9f1a77ddc29524d9e0a91649f20a0e054896e (diff) | |
download | mpv-380fc1a76316865af7cc72dab1868760260a33e5.tar.bz2 mpv-380fc1a76316865af7cc72dab1868760260a33e5.tar.xz |
Cosmetics: make some variables constant to signify their intended use and,
therefore, improve code readability.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29424 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_render.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index ae54a0f1bc..f64908c8a0 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -346,19 +346,18 @@ static ass_image_t** render_glyph(bitmap_t* bm, int dst_x, int dst_y, uint32_t c // color = color left of brk // color2 = color right of brk int b_x0, b_y0, b_x1, b_y1; // visible part of the bitmap - int clip_x0, clip_y0, clip_x1, clip_y1; int tmp; ass_image_t* img; + const int clip_x0 = render_context.clip_x0; + const int clip_y0 = render_context.clip_y0; + const int clip_x1 = render_context.clip_x1; + const int clip_y1 = render_context.clip_y1; + dst_x += bm->left; dst_y += bm->top; brk -= bm->left; - // clipping - clip_x0 = render_context.clip_x0; - clip_y0 = render_context.clip_y0; - clip_x1 = render_context.clip_x1; - clip_y1 = render_context.clip_y1; b_x0 = 0; b_y0 = 0; b_x1 = bm->w; |