]> git.saurik.com Git - winterboard.git/commitdiff
Don't rotate icons in landscape on the iPad, fixing multitasking (so your themes...
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 24 Jun 2010 04:54:26 +0000 (04:54 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 24 Jun 2010 04:54:26 +0000 (04:54 +0000)
Library.mm
control

index 95541eee63853007b54a621b5d6135930d5d3cb9..a55c7d1c5c8d1c12ccafddb1aa58f20dc42ab358 100644 (file)
@@ -777,7 +777,7 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) {
     IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat];
 
     if (Papered_) {
-        UIWindow *&_wallpaperView(MSHookIvar<UIWindow *>(self, "_wallpaperView"));
+        UIImageView *&_wallpaperView(MSHookIvar<UIImageView *>(self, "_wallpaperView"));
         if (&_wallpaperView != NULL) {
             [_wallpaperView removeFromSuperview];
             [_wallpaperView release];
@@ -785,7 +785,6 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) {
         }
     }
 
-    UIWindow *&_window(MSHookIvar<UIWindow *>(self, "_window"));
     UIView *&_contentLayer(MSHookIvar<UIView *>(self, "_contentLayer"));
     UIView *&_contentView(MSHookIvar<UIView *>(self, "_contentView"));
 
@@ -796,18 +795,24 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) {
         player = &_contentView;
     else
         player = NULL;
-
     UIView *layer(player == NULL ? nil : *player);
 
-    UIView *content([[[UIView alloc] initWithFrame:[layer frame]] autorelease]);
+    UIWindow *window([[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]);
+    UIView *content([[[UIView alloc] initWithFrame:[window frame]] autorelease]);
+    [window setContentView:content];
+
+    UIWindow *&_window(MSHookIvar<UIWindow *>(self, "_window"));
+    [window setBackgroundColor:[_window backgroundColor]];
+    [_window setBackgroundColor:[UIColor clearColor]];
+
+    [window setLevel:-1000];
+    [window setHidden:NO];
 
     /*if (player != NULL)
         *player = content;*/
 
     [content setBackgroundColor:[layer backgroundColor]];
     [layer setBackgroundColor:[UIColor clearColor]];
-    [layer setFrame:[content bounds]];
-    [_window setContentView:content];
 
     UIView *indirect;
     if (!SummerBoard_ || !IsWild_)
@@ -929,8 +934,6 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) {
         }
     }
 
-    [content addSubview:layer];
-
     return self;
 }
 
diff --git a/control b/control
index e7e83b886cebc366d9a7774dc1d6352a2864b603..83e2dc5cc145934a6ad6f46b8bda7737d11e1ed9 100644 (file)
--- a/control
+++ b/control
@@ -3,7 +3,7 @@ Priority: optional
 Section: System
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Architecture: iphoneos-arm
-Version: 0.9.3210-1
+Version: 0.9.3211-1
 Description: more powerful, open-source SummerBoard
 Name: WinterBoard
 Depends: mobilesubstrate (>= 0.9.2958-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23) | pincrush