Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-13 13:39:02 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-13 13:39:02 (GMT)
commitc19897f1b6a0e537810be0b2825a2f5b3b6840fc (patch)
tree2940a74e3ee11a31021d51106b1cb3fb67b79a0e
parent867630c879732c0e2661e70c6da0299711739b77 (diff)
added missing w, h references as per #2689
-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')