Commit b83866a5 authored by Jaden Goter's avatar Jaden Goter

Removed unnecessary drawing in do_draw.

parent ae6720b2
Pipeline #174513 failed with stage
in 5 minutes and 57 seconds
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>. # License along with this program; if not, see <http://www.gnu.org/licenses/>.
import cairo
from gi.repository import Gtk from gi.repository import Gtk
from pitivi.utils.loggable import Loggable from pitivi.utils.loggable import Loggable
...@@ -46,13 +45,9 @@ class CompositionGuidelinesOverlay(Gtk.DrawingArea, Loggable): ...@@ -46,13 +45,9 @@ class CompositionGuidelinesOverlay(Gtk.DrawingArea, Loggable):
self.queue_draw() self.queue_draw()
def do_draw(self, cr): def do_draw(self, cr):
cr.set_operator(cairo.OPERATOR_OVER)
cr.set_source_rgba(0, 0, 0, 0)
cr.paint()
# Draw black border # Draw black border
cr.set_source_rgb(0, 0, 0) cr.set_source_rgb(0, 0, 0)
cr.set_line_width(3) cr.set_line_width(2)
for guideline_func in self.active_guidelines: for guideline_func in self.active_guidelines:
guideline_func(self, cr) guideline_func(self, cr)
cr.stroke() cr.stroke()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment