This commit is contained in:
Florian Festi 2022-03-27 22:09:29 +02:00
parent f1f829d5fb
commit d062a1e9aa
1 changed files with 3 additions and 4 deletions

View File

@ -65,11 +65,10 @@ class Formats:
def getSurface(self, fmt, filename): def getSurface(self, fmt, filename):
if fmt in ("svg", "svg_Ponoko"): if fmt in ("svg", "svg_Ponoko"):
surface = SVGSurface(filename) surface = SVGSurface(filename)
elif fmt == "lbrn2":
surface = LBRN2Surface(filename)
else: else:
if fmt == "lbrn2": surface = PSSurface(filename)
surface = LBRN2Surface(filename)
else:
surface = PSSurface(filename)
ctx = Context(surface) ctx = Context(surface)
return surface, ctx return surface, ctx