Fix some warnings about misleading indentation
This commit is contained in:
parent
046f94d3ac
commit
67b29e3b9e
4 changed files with 17 additions and 13 deletions
|
@ -157,7 +157,10 @@ bool Triangulate::triangulate(const Vector<Vector2> &contour,Vector<int> &result
|
|||
m++;
|
||||
|
||||
/* 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 */
|
||||
count = 2*nv;
|
||||
|
|
|
@ -175,8 +175,8 @@ void AudioDriverPulseAudio::finish() {
|
|||
exit_thread = true;
|
||||
Thread::wait_to_finish(thread);
|
||||
|
||||
if (pulse)
|
||||
pa_simple_free(pulse);
|
||||
if (pulse)
|
||||
pa_simple_free(pulse);
|
||||
|
||||
if (samples_in) {
|
||||
memdelete_arr(samples_in);
|
||||
|
|
|
@ -330,8 +330,8 @@ public:
|
|||
|
||||
|
||||
virtual Vector<StackInfo> debug_get_current_stack_info() {
|
||||
if (Thread::get_main_ID()!=Thread::get_caller_ID())
|
||||
return Vector<StackInfo>();
|
||||
if (Thread::get_main_ID()!=Thread::get_caller_ID())
|
||||
return Vector<StackInfo>();
|
||||
|
||||
Vector<StackInfo> csi;
|
||||
csi.resize(_debug_call_stack_pos);
|
||||
|
|
|
@ -41,13 +41,13 @@ void update_material(Ref<CanvasItemMaterial>mat,const Color& p_color,float h,flo
|
|||
if (!sdr.is_valid())
|
||||
return;
|
||||
|
||||
mat->set_shader_param("R",p_color.r);
|
||||
mat->set_shader_param("G",p_color.g);
|
||||
mat->set_shader_param("B",p_color.b);
|
||||
mat->set_shader_param("H",h);
|
||||
mat->set_shader_param("S",s);
|
||||
mat->set_shader_param("V",v);
|
||||
mat->set_shader_param("A",p_color.a);
|
||||
mat->set_shader_param("R",p_color.r);
|
||||
mat->set_shader_param("G",p_color.g);
|
||||
mat->set_shader_param("B",p_color.b);
|
||||
mat->set_shader_param("H",h);
|
||||
mat->set_shader_param("S",s);
|
||||
mat->set_shader_param("V",v);
|
||||
mat->set_shader_param("A",p_color.a);
|
||||
}
|
||||
|
||||
void ColorPicker::_notification(int p_what) {
|
||||
|
@ -397,9 +397,10 @@ void ColorPicker::_screen_input(const InputEvent &ev)
|
|||
if (!r->get_rect().has_point(Point2(mev.global_x,mev.global_y)))
|
||||
return;
|
||||
Image img =r->get_screen_capture();
|
||||
if (!img.empty())
|
||||
if (!img.empty()) {
|
||||
last_capture=img;
|
||||
r->queue_screen_capture();
|
||||
}
|
||||
if (!last_capture.empty())
|
||||
set_color(last_capture.get_pixel(mev.global_x,mev.global_y));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue