1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 21:12:23 +00:00

osc: bottom/topbar: don't clip title vertically

This commit is contained in:
Ricardo Constantino 2017-02-04 23:28:52 +00:00
parent aee08e3f51
commit bc8710a98d
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

View File

@ -1217,7 +1217,7 @@ layouts["bottombar"] = function()
lo.geometry = geo lo.geometry = geo
lo.style = string.format("%s{\\clip(%f,%f,%f,%f)}", lo.style = string.format("%s{\\clip(%f,%f,%f,%f)}",
osc_styles.vidtitleBar, osc_styles.vidtitleBar,
geo.x, geo.y-geo.h/2, geo.w, geo.y+geo.h/2) geo.x, geo.y-geo.h, geo.w, geo.y+geo.h)
-- Playback control buttons -- Playback control buttons
@ -1444,7 +1444,7 @@ layouts["topbar"] = function()
lo.geometry = geo lo.geometry = geo
lo.style = string.format("%s{\\clip(%f,%f,%f,%f)}", lo.style = string.format("%s{\\clip(%f,%f,%f,%f)}",
osc_styles.vidtitleBar, osc_styles.vidtitleBar,
geo.x, geo.y-geo.h/2, geo.w, geo.y+geo.h/2) geo.x, geo.y-geo.h, geo.w, geo.y+geo.h)
end end
-- Validate string type user options -- Validate string type user options