]> git.sesse.net Git - nageru/commitdiff
Fix SBS for non-1280x720 resolutions.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 28 Feb 2016 11:50:32 +0000 (12:50 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 28 Feb 2016 11:50:32 +0000 (12:50 +0100)
theme.lua

index aca8c4e7ee9decbfdfb73b89ad6b67ab968c70b4..1b874dcf876cf6337cbb9dd1ad450e53ebeb22b6 100644 (file)
--- a/theme.lua
+++ b/theme.lua
@@ -633,6 +633,9 @@ function place_rectangle(resample_effect, resize_effect, padding_effect, x0, y0,
        local srcy0 = 0.0
        local srcy1 = 1.0
 
+       padding_effect:set_int("width", screen_width)
+       padding_effect:set_int("height", screen_height)
+
        -- Cull.
        if x0 > screen_width or x1 < 0.0 or y0 > screen_height or y1 < 0.0 then
                resample_effect:set_int("width", 1)