]> git.saurik.com Git - winterboard.git/commitdiff
Fixed 2.1 _inDock variable.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 14 Sep 2008 20:09:22 +0000 (20:09 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 14 Sep 2008 20:09:22 +0000 (20:09 +0000)
Library.mm

index 34efd272a2c15e20950d98c23a0f55f5fa0ff496..990336abf3853b878ec0cd0d64e27c118c4658c2 100644 (file)
@@ -801,9 +801,11 @@ static CGSize WebCoreFrameBridge$renderedSizeOfNode$constrainedToWidth$(WebCoreF
 static void SBIconLabel$drawRect$(SBIconLabel<WinterBoard> *self, SEL sel, CGRect rect) {
     CGRect bounds = [self bounds];
 
 static void SBIconLabel$drawRect$(SBIconLabel<WinterBoard> *self, SEL sel, CGRect rect) {
     CGRect bounds = [self bounds];
 
+    static Ivar drawMoreLegibly = object_getInstanceVariable(self, "_drawMoreLegibly", NULL);
+
     BOOL docked;
     BOOL docked;
-    object_getInstanceVariable(self, "_inDock", reinterpret_cast<void **>(&docked));
-    docked = (docked & 0x1) != 0;
+    Ivar ivar = object_getInstanceVariable(self, "_inDock", reinterpret_cast<void **>(&docked));
+    docked = (docked & (ivar_getOffset(ivar) == ivar_getOffset(drawMoreLegibly) ? 0x2 : 0x1)) != 0;
 
     NSString *label;
     object_getInstanceVariable(self, "_label", reinterpret_cast<void **>(&label));
 
     NSString *label;
     object_getInstanceVariable(self, "_label", reinterpret_cast<void **>(&label));