From efc81d7bc9099ae4d46f0f0a906b5af3c763c3d5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 21 Jan 2012 16:10:41 +0530 Subject: [PATCH] dont create transparent audio timelines --- oxtimeline/audio.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oxtimeline/audio.py b/oxtimeline/audio.py index b732b29..b02fbc5 100644 --- a/oxtimeline/audio.py +++ b/oxtimeline/audio.py @@ -89,8 +89,8 @@ class Audio(gst.Pipeline): height = int((p * self.tile_height) / 256) * 2 crop = int((self.tile_height-height) / 2) if p: p += 20 - color = (p, p, p, 255) - color = (255,255,255,255) + color = (p, p, p) + color = (255,255,255) if start: end = self.tile_height - crop @@ -144,7 +144,7 @@ class Timeline(Audio): ntiles = int(math.ceil(float(self.frames)/self.input_tile_width)) self.tiles = [] for i in range(ntiles): - tile = Image.new("RGBA", (self.input_tile_width, height), (0, 0, 0, 0)) + tile = Image.new("RGB", (self.input_tile_width, height), (0, 0, 0)) self.tiles.append(tile) self.set_state(gst.STATE_PLAYING)