Subversion Repositories wimsdev

Rev

Rev 18627 | Rev 18633 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18627 Rev 18629
Line 1774... Line 1774...
1774
            add_js_filltoborder(canvas_type);
1774
            add_js_filltoborder(canvas_type);
1775
          }
1775
          }
1776
          decimals = find_number_of_digits(precision);
1776
          decimals = find_number_of_digits(precision);
1777
         /* we need to set a timeout: the canvas is not yet draw in memory? when floodfill is called directly... */
1777
         /* we need to set a timeout: the canvas is not yet draw in memory? when floodfill is called directly... */
1778
          tmp_buffer=my_newmem(MAX_BUFFER);
1778
          tmp_buffer=my_newmem(MAX_BUFFER);
1779
          check_string_length(snprintf(tmp_buffer,MAX_BUFFER, "filltoborder(%.*f,%.*f,[%s,%d],[%s,%d],%d,false,null);\n",decimals,double_data[0],decimals,double_data[1],bgcolor,(int) (fill_opacity/0.0039215),fill_color,(int) (fill_opacity/0.0039215),FILL_CANVAS+fill_cnt));
1779
          check_string_length(snprintf(tmp_buffer,MAX_BUFFER, "setTimeout(function(){filltoborder(%.*f,%.*f,[%s,%d],[%s,%d],%d,false,null)},1000);\n",decimals,double_data[0],decimals,double_data[1],bgcolor,(int) (fill_opacity/0.0039215),fill_color,(int) (fill_opacity/0.0039215),FILL_CANVAS+fill_cnt));
1780
          add_to_buffer(tmp_buffer);
1780
          add_to_buffer(tmp_buffer);
1781
          fill_cnt++;
1781
          fill_cnt++;
1782
          reset();
1782
          reset();
1783
          break;
1783
          break;
1784
              default:break;
1784
              default:break;