lorenbrichter / SimFinger

Screencasting for iPhone
http://blog.atebits.com/2009/03/not-your-average-iphone-screencast/
1.24k stars 132 forks source link

iphone simulator position when screen resoultion is 1280 x 800 #16

Open huntrax11 opened 13 years ago

huntrax11 commented 13 years ago

Would you check the iphone simulator's position and frames when screen resoultion is iphone simulator position when screen resoultion is 1280 x 800(13" MacBook and 13" MacBook Pro's) ? Frame and iphone simulator seems clipped to me.

adamaxe commented 13 years ago

I'll submit a real fix when I get a chance, but here's a nasty hack. I've found if you subtract 110 px from y, it lines up nice. For now:

Change repositioning of Simulator line 161: Change

point.y = screenRect.size.height - size.height - 135 - 13;

To

point.y = screenRect.size.height - size.height - 25 - 13;

Change various overlays

hardwareOverlay = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 634, 985) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];

pointerOverlay = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 50, 50) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];

fadeOverlay = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 634, 985) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];

Change the NSMakeRect to:

NSMakeRect(0, -110, 634, 985)

NSMakeRect(0, -110, 50, 50)