Fix some warnings about misleading indentation

This commit is contained in:
Johan Manuel 2016-07-26 15:04:54 +02:00
parent 046f94d3ac
commit 67b29e3b9e
4 changed files with 17 additions and 13 deletions

View file

@ -157,7 +157,10 @@ bool Triangulate::triangulate(const Vector<Vector2> &contour,Vector<int> &result
m++; m++;
/* remove v from remaining polygon */ /* remove v from remaining polygon */
for(s=v,t=v+1;t<nv;s++,t++) V[s] = V[t]; nv--; for(s=v,t=v+1;t<nv;s++,t++)
V[s] = V[t];
nv--;
/* resest error detection counter */ /* resest error detection counter */
count = 2*nv; count = 2*nv;

View file

@ -397,9 +397,10 @@ void ColorPicker::_screen_input(const InputEvent &ev)
if (!r->get_rect().has_point(Point2(mev.global_x,mev.global_y))) if (!r->get_rect().has_point(Point2(mev.global_x,mev.global_y)))
return; return;
Image img =r->get_screen_capture(); Image img =r->get_screen_capture();
if (!img.empty()) if (!img.empty()) {
last_capture=img; last_capture=img;
r->queue_screen_capture(); r->queue_screen_capture();
}
if (!last_capture.empty()) if (!last_capture.empty())
set_color(last_capture.get_pixel(mev.global_x,mev.global_y)); set_color(last_capture.get_pixel(mev.global_x,mev.global_y));
} }