Merge branch 'patch-1' of git://github.com/SammysHP/awesome
This commit is contained in:
commit
1942986468
|
@ -138,6 +138,8 @@ function wallpaper.maximized(surf, s, ignore_aspect, offset)
|
|||
|
||||
if offset then
|
||||
cr:translate(offset.x, offset.y)
|
||||
elseif not ignore_aspect then
|
||||
cr:translate(((geom.width / aspect_w) - w) / 2, ((geom.height / aspect_h) - h) / 2)
|
||||
end
|
||||
|
||||
cr:set_source_surface(surf, 0, 0)
|
||||
|
|
Loading…
Reference in New Issue