mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 04:07:42 +08:00
fix a compile error
This commit is contained in:
parent
9aecd895f9
commit
0b72faf472
@ -736,12 +736,13 @@ float PlotView::Private::rectCost(const RectF &r) const
|
||||
// Compute sum of mask values in the rect r
|
||||
Cairo::RefPtr<Cairo::ImageSurface> subMask ;//= plotMask.copy(r.toRect());
|
||||
int cost = 0;
|
||||
#if 0
|
||||
for (int ix = 0; ix < subMask->get_width(); ++ix) {
|
||||
for (int iy = 0; iy < subMask->get_height(); ++iy) {
|
||||
//cost += uint32_t(subMask.pixel(ix, iy)).red();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
return float(cost);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user