]> granicus.if.org Git - libass/commitdiff
Calculate subtitle origin in floating point.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 7 Aug 2008 22:20:52 +0000 (22:20 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 7 Aug 2008 22:20:52 +0000 (22:20 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27438 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index b4c9ae090f6b94f9d17fcfffe85d5c76b9923f62..bc746fd31dca3ac88b838bd9d854454b7d3f6075 100644 (file)
@@ -150,7 +150,7 @@ typedef struct render_context_s {
                EVENT_VSCROLL // "Scroll up", "Scroll down" transition effects
                } evt_type;
        double pos_x, pos_y; // position
-       int org_x, org_y; // origin
+       double org_x, org_y; // origin
        char have_origin; // origin is explicitly defined; if 0, get_base_point() is used
        double scale_x, scale_y;
        double hspacing; // distance between letters, in pixels