]> git.saurik.com Git - cydget.git/commitdiff
Tiny improvement to fix scrolling behavior under the lockbar.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 6 Nov 2009 09:37:42 +0000 (09:37 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 6 Nov 2009 09:37:42 +0000 (09:37 +0000)
LockScreen.mm
makefile

index f919b529830ba24d6c7d05f4be4f0a60d645d430..9ac2c022547d0a3f6c2d66de030ae60c9b5821eb 100644 (file)
@@ -42,6 +42,7 @@
 #import <AddressBook/AddressBook.h>
 
 #import <SpringBoardUI/SBAwayViewPluginController.h>
 #import <AddressBook/AddressBook.h>
 
 #import <SpringBoardUI/SBAwayViewPluginController.h>
+#import <TelephonyUI/TPBottomLockBar.h>
 
 #import <QuartzCore/CALayer.h>
 // XXX: fix the minimum requirement
 
 #import <QuartzCore/CALayer.h>
 // XXX: fix the minimum requirement
@@ -534,6 +535,7 @@ _trace();
     }
 
     CGRect subrect([scroller_ frame]);
     }
 
     CGRect subrect([scroller_ frame]);
+    subrect.size.height -= [TPBottomLockBar defaultHeight];
     subrect.size.height -= extra;
     [scroller_ setScrollerIndicatorSubrect:subrect];
 
     subrect.size.height -= extra;
     [scroller_ setScrollerIndicatorSubrect:subrect];
 
@@ -542,6 +544,7 @@ _trace();
 
     CGSize size(size_);
     size.height += extra;
 
     CGSize size(size_);
     size.height += extra;
+    size.height += [TPBottomLockBar defaultHeight];
     [scroller_ setContentSize:size];
 
     [scroller_ releaseRubberBandIfNecessary];
     [scroller_ setContentSize:size];
 
     [scroller_ releaseRubberBandIfNecessary];
index 9782796caa25c35fc7285ea721b27f7532193325..637b624b99c7199da8a81ab75158714c96831474 100644 (file)
--- a/makefile
+++ b/makefile
@@ -6,7 +6,7 @@ include $(base)/tweak.mk
 all: WebCycriptLockScreen
 
 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
 all: WebCycriptLockScreen
 
 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
-       $(target)g++ -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices
+       $(target)g++ -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices -framework TelephonyUI
        ldid -S $@
 
 extra:
        ldid -S $@
 
 extra: