projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1ad15
)
Set area used to calculate primary index to 1x1
author
Mohammed Sameer
<msameer@foolab.org>
Sun, 3 Feb 2013 19:38:42 +0000
(21:38 +0200)
committer
Mohammed Sameer
<msameer@foolab.org>
Sun, 3 Feb 2013 19:39:33 +0000
(21:39 +0200)
We are dealing with normalized coordinates where maximum width and height would be 1
lib/qtcamroi_p.h
patch
|
blob
|
history
diff --git
a/lib/qtcamroi_p.h
b/lib/qtcamroi_p.h
index
b2fa30a
..
88a492a
100644
(file)
--- a/
lib/qtcamroi_p.h
+++ b/
lib/qtcamroi_p.h
@@
-178,7
+178,7
@@
private slots:
rects << rect;
}
- int index = primaryRegion(QRectF(0, 0,
width, height
), rects);
+ int index = primaryRegion(QRectF(0, 0,
1, 1
), rects);
QList<QRectF> rest(rects);
QRectF primary = index == -1 ? QRectF() : rest.takeAt(index);