gears.color.create_opaque_pattern: Fix for SurfacePatterns (FS#1236)
Sorry! Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
b4c83d0e70
commit
1847b0ae1f
|
@ -219,7 +219,8 @@ function color.create_opaque_pattern(col)
|
|||
end
|
||||
return pattern
|
||||
elseif type == "SURFACE" then
|
||||
if pattern:get_surface():get_content() ~= "COLOR" then
|
||||
local status, surface = pattern:get_surface()
|
||||
if status ~= "SUCCESS" or surface.content ~= "COLOR" then
|
||||
-- The surface has an alpha channel which *might* be non-opaque
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue