mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 03:10:47 +00:00
Remove code that is not needed any more
This commit is contained in:
parent
85d5480def
commit
c4486099f9
@ -721,13 +721,10 @@ UIImage *bit_screenshot(void) {
|
||||
// Apply the window's transform about the anchor point
|
||||
CGContextConcatCTM(context, [window transform]);
|
||||
|
||||
// Y-offset for the status bar (if it's showing)
|
||||
NSInteger yOffset = 0;
|
||||
|
||||
// Offset by the portion of the bounds left of and above the anchor point
|
||||
CGContextTranslateCTM(context,
|
||||
-[window bounds].size.width * [[window layer] anchorPoint].x,
|
||||
-[window bounds].size.height * [[window layer] anchorPoint].y + yOffset);
|
||||
-[window bounds].size.height * [[window layer] anchorPoint].y);
|
||||
|
||||
if (isLandscapeLeft) {
|
||||
CGContextConcatCTM(context, CGAffineTransformRotate(CGAffineTransformMakeTranslation( imageSize.width, 0), M_PI / 2.0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user