From 55e82d7431b1edebc2472d8384bd10d3d1518e1b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 24 Jun 2010 04:54:26 +0000 Subject: [PATCH] Don't rotate icons in landscape on the iPad, fixing multitasking (so your themes look stupid). --- Library.mm | 19 +++++++++++-------- control | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Library.mm b/Library.mm index 95541ee..a55c7d1 100644 --- a/Library.mm +++ b/Library.mm @@ -777,7 +777,7 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) { IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat]; if (Papered_) { - UIWindow *&_wallpaperView(MSHookIvar(self, "_wallpaperView")); + UIImageView *&_wallpaperView(MSHookIvar(self, "_wallpaperView")); if (&_wallpaperView != NULL) { [_wallpaperView removeFromSuperview]; [_wallpaperView release]; @@ -785,7 +785,6 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) { } } - UIWindow *&_window(MSHookIvar(self, "_window")); UIView *&_contentLayer(MSHookIvar(self, "_contentLayer")); UIView *&_contentView(MSHookIvar(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(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 e7e83b8..83e2dc5 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: System Maintainer: Jay Freeman (saurik) 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 -- 2.45.2