Changeset 838
- Timestamp:
- 03/30/08 21:11:52 (4 months ago)
- Files:
-
- trunk/Subtitles/SubATSUIRenderer.m (modified) (3 diffs)
- trunk/Subtitles/SubContext.h (modified) (1 diff)
- trunk/Subtitles/SubParsing.m.rl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Subtitles/SubATSUIRenderer.m
r806 r838 334 334 Fixed tracking = FloatToFixed(s->tracking); 335 335 336 SetATSUStyleOther(style, kATSU TrackingTag, sizeof(Fixed), &tracking);336 SetATSUStyleOther(style, kATSUAfterWithStreamShiftTag, sizeof(Fixed), &tracking); 337 337 } 338 338 … … 473 473 case tag_fsp: 474 474 fixv(); 475 SetATSUStyleOther(spanEx->style, kATSU TrackingTag, sizeof(Fixed), &fixval);475 SetATSUStyleOther(spanEx->style, kATSUAfterWithStreamShiftTag, sizeof(Fixed), &fixval); 476 476 break; 477 477 case tag_frz: … … 988 988 ATSUTextMeasurement imageWidth, imageHeight; 989 989 990 if (div->posX != -1|| div->alignV == kSubAlignmentMiddle) GetTypographicRectangleForLayout(layout, breaks, breakCount, FloatToFixed(div->styleLine->outlineRadius), NULL, NULL, &imageHeight, &imageWidth);991 992 if (div->posX == -1) {990 if (div->posX != kSubPositionNone || div->alignV == kSubAlignmentMiddle) GetTypographicRectangleForLayout(layout, breaks, breakCount, FloatToFixed(div->styleLine->outlineRadius), NULL, NULL, &imageHeight, &imageWidth); 991 992 if (div->posX == kSubPositionNone) { 993 993 penX = FloatToFixed(NSMinX(marginRect)); 994 994 trunk/Subtitles/SubContext.h
r806 r838 16 16 enum {kSubAlignmentBottom, kSubAlignmentMiddle, kSubAlignmentTop}; 17 17 enum {kSubBorderStyleNormal = 1, kSubBorderStyleBox = 3}; 18 enum {kSubPositionNone = INT_MAX}; 18 19 19 20 typedef ATSURGBAlphaColor SubRGBAColor; trunk/Subtitles/SubParsing.m.rl
r806 r838 62 62 spans = nil; 63 63 64 posX = posY = -1;64 posX = posY = kSubPositionNone; 65 65 alignH = kSubAlignmentMiddle; alignV = kSubAlignmentBottom; 66 66 … … 341 341 color = ("H"|"&"){,2} (xdigit+) >paramset %sethexnum "&"?; 342 342 parens = "(" [^)]* ")"; 343 xypos = ("(" [0-9]+ ","[0-9]+ ")") >paramset %setxypos;343 xypos = ("(" "-"? [0-9]+ "," "-"? [0-9]+ ")") >paramset %setxypos; 344 344 345 345 cmd = "\\" (
