Przeglądaj źródła

修复播放器有黑边问题

jsonwang 3 lat temu
rodzic
commit
2f8babb679

+ 6 - 0
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -894,6 +894,12 @@ class PQStuckPointEditerController: PQBaseViewController {
         }
         showRect.origin.y = (playerShowHeight - showRect.size.height) / 2.0 + (navHeadImageView?.frame.maxY ?? 0)
         if showRect.size.width != 0, showRect.size.height != 0 {
+            if(Int(showRect.height) % 2 != 0){
+                showRect.size.height  = showRect.size.height + 1.0
+            }
+            if(Int(showRect.width) % 2 != 0){
+                showRect.size.width  =  showRect.size.width + 1.0
+            }
             playerView.resetCanvasFrame(frame: showRect)
         }