Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/camera_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/camera_plugin.py b/plugins/camera_plugin.py
index 3715b29..dd22a7e 100644
--- a/plugins/camera_plugin.py
+++ b/plugins/camera_plugin.py
@@ -113,7 +113,8 @@ is pushed to the stack'),
""" Read average pixel from camera and push b, g, r to the stack """
pixbuf = None
array = None
- w, h = self._parent.lc._w(), self._parent.lc._h()
+ w = int((self._parent.canvas.width * self._parent.lc.scale) / 100.)
+ h = int((self._parent.canvas.height * self._parent.lc.scale) / 100.)
if w > 0 and h > 0 and self._status:
try:
self._video_capture_device = open('/dev/video0', 'rw')