mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Long audio playback improvements: 2x playback, position storing
Various UI fixes
This commit is contained in:
@@ -153,7 +153,16 @@ final class InstantPageTextItem: InstantPageItem {
|
||||
if self.opaqueBackground {
|
||||
context.setBlendMode(.normal)
|
||||
}
|
||||
CTLineDraw(line.line, context)
|
||||
|
||||
let glyphRuns = CTLineGetGlyphRuns(line.line) as NSArray
|
||||
if glyphRuns.count != 0 {
|
||||
for run in glyphRuns {
|
||||
let run = run as! CTRun
|
||||
let glyphCount = CTRunGetGlyphCount(run)
|
||||
CTRunDraw(run, context, CFRangeMake(0, glyphCount))
|
||||
}
|
||||
}
|
||||
|
||||
if self.opaqueBackground {
|
||||
context.setBlendMode(.copy)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user