From c19897f1b6a0e537810be0b2825a2f5b3b6840fc Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 13 Mar 2011 13:39:02 +0000 Subject: added missing w, h references as per #2689 --- 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') -- cgit v0.9.1