Skip to content

Commit

Permalink
[iina#4808] Fix screenshot OSD layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiqian committed Apr 27, 2024
1 parent 73c9608 commit 8cea0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iina/PlayerCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class PlayerCore: NSObject {
DispatchQueue.main.async {
let osdView = ScreenshootOSDView()
osdView.setImage(image,
size: image.size.shrink(toSize: NSSize(width: 300, height: 200)),
size: image.size.grow(toSize: NSSize(width: 300, height: 200)),
fileURL: saveToFile ? lastScreenshotURL : nil)
self.sendOSD(.screenshot, forcedTimeout: 5, accessoryView: osdView.view, context: osdView)
if !saveToFile {
Expand Down

0 comments on commit 8cea0c3

Please sign in to comment.