diff options
| author | tassaron | 2017-06-15 22:15:03 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-15 22:15:03 -0400 |
| commit | c05efc73ee069fe2eb8776a27b503ada2adb4af6 (patch) | |
| tree | 33bb0fc36a3e6a730e51d52075d02814faebe40b /components/original.py | |
| parent | 8603fa12e3d63705e3cbc202bd0635e5ac977225 (diff) | |
various bugfixes, blankFrame method for components
don't crash from broken project files or nonexistent videopaths, and shareable common paths in core.py
Diffstat (limited to 'components/original.py')
| -rw-r--r-- | components/original.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/original.py b/components/original.py index 9df2815..5e2f9d4 100644 --- a/components/original.py +++ b/components/original.py @@ -145,7 +145,7 @@ class Component(__base__.Component): bF = width / 64 bH = bF / 2 bQ = bF / 4 - imTop = Image.new("RGBA", (width, height), (0, 0, 0, 0)) + imTop = self.blankFrame(width, height) draw = ImageDraw.Draw(imTop) r, g, b = color color2 = (r, g, b, 125) @@ -163,7 +163,7 @@ class Component(__base__.Component): imBottom = imTop.transpose(Image.FLIP_TOP_BOTTOM) - im = Image.new("RGBA", (width, height), (0, 0, 0, 0)) + im = self.blankFrame(width, height) if layout == 0: y = 0 - int(height/100*43) |
