]> git.saurik.com Git - winterboard.git/commitdiff
Replace the added WebTextAlignment with UITextAlignment.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 11 Mar 2012 05:32:22 +0000 (05:32 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 11 Mar 2012 05:32:22 +0000 (05:32 +0000)
Library.mm
WBMarkup.h

index 94f1075a8f108e8ba08983049fc0d3d0e0521ec1..72311b87f61859951f10d4d27ce88cf23c628b46 100644 (file)
@@ -703,7 +703,7 @@ MSInstanceMessageHook6(CGSize, NSString, drawAtPoint,forWidth,withFont,lineBreak
     return CGSizeZero;
 }
 
-MSInstanceMessageHook7(CGSize, NSString, _drawInRect,withFont,lineBreakMode,alignment,lineSpacing,includeEmoji,truncationRect, CGRect, rect, UIFont *, font, UILineBreakMode, mode, WebTextAlignment, alignment, float, spacing, BOOL, emoji, CGRect, truncation) {
+MSInstanceMessageHook7(CGSize, NSString, _drawInRect,withFont,lineBreakMode,alignment,lineSpacing,includeEmoji,truncationRect, CGRect, rect, UIFont *, font, UILineBreakMode, mode, UITextAlignment, alignment, float, spacing, BOOL, emoji, CGRect, truncation) {
     WBStringDrawingState *state(stringDrawingState_);
     if (state == NULL)
         return MSOldCall(rect, font, mode, alignment, spacing, emoji, truncation);
@@ -720,13 +720,13 @@ MSInstanceMessageHook7(CGSize, NSString, _drawInRect,withFont,lineBreakMode,alig
     NSString *textAlign;
     switch (alignment) {
         default:
-        case WebTextAlignmentLeft:
+        case UITextAlignmentLeft:
             textAlign = @"left";
             break;
-        case WebTextAlignmentCenter:
+        case UITextAlignmentCenter:
             textAlign = @"center";
             break;
-        case WebTextAlignmentRight:
+        case UITextAlignmentRight:
             textAlign = @"right";
             break;
     }
index d396a8e87879252da8548294fda4ec4b183389b9..24645e00d30461b3e0e9f85fd4fc1f2391ab5fb7 100644 (file)
@@ -7,12 +7,6 @@
 @class WAKWindow;
 @class WebView;
 
-typedef enum {
-    WebTextAlignmentLeft = 0,
-    WebTextAlignmentCenter = 1,
-    WebTextAlignmentRight = 2,
-} WebTextAlignment;
-
 @interface WBMarkup : NSObject {
     /*04*/ WebView *view_;
     /*08*/ DOMDocument *document_;