533
GUI_seek_down(gui, &cursor_x, &cursor_y, neutral_color, "help font (title)");
531
if (GUI_seek_down(gui, &cursor_x, &cursor_y, neutral_color, "help font (title)"))
537
GUI_seek_right(gui, &cursor_x, cursor_y, neutral_color, "help font (title)");
536
if (GUI_seek_right(gui, &cursor_x, cursor_y, neutral_color, "help font (title)"))
542
dest=&(GFX_help_font_t4[char_4++][0][0]);
542
dest=&(gfx->Help_font_t4[char_4++][0][0]);
544
dest=&(GFX_help_font_t2[char_2++][0][0]);
544
dest=&(gfx->Help_font_t2[char_2++][0][0]);
547
dest=&(GFX_help_font_t3[char_3++][0][0]);
547
dest=&(gfx->Help_font_t3[char_3++][0][0]);
549
dest=&(GFX_help_font_t1[char_1++][0][0]);
549
dest=&(gfx->Help_font_t1[char_1++][0][0]);
551
Read_GUI_block(gui, cursor_x, cursor_y, dest, 6, 8, "help font (title)",0);
551
if (Read_GUI_block(gui, cursor_x, cursor_y, dest, 6, 8, "help font (title)",0))
556
// Termin�: lib�ration de l'image skin
557
SDL_FreeSurface(gui);
559
557
Current_help_section=0;
562
Preset_paintbrush_width[ 0]= 1;
563
Preset_paintbrush_height[ 0]= 1;
564
Paintbrush_type [ 0]=PAINTBRUSH_SHAPE_SQUARE;
566
Preset_paintbrush_width[ 1]= 2;
567
Preset_paintbrush_height[ 1]= 2;
568
Paintbrush_type [ 1]=PAINTBRUSH_SHAPE_SQUARE;
570
Preset_paintbrush_width[ 2]= 3;
571
Preset_paintbrush_height[ 2]= 3;
572
Paintbrush_type [ 2]=PAINTBRUSH_SHAPE_SQUARE;
574
Preset_paintbrush_width[ 3]= 4;
575
Preset_paintbrush_height[ 3]= 4;
576
Paintbrush_type [ 3]=PAINTBRUSH_SHAPE_SQUARE;
578
Preset_paintbrush_width[ 4]= 5;
579
Preset_paintbrush_height[ 4]= 5;
580
Paintbrush_type [ 4]=PAINTBRUSH_SHAPE_SQUARE;
582
Preset_paintbrush_width[ 5]= 7;
583
Preset_paintbrush_height[ 5]= 7;
584
Paintbrush_type [ 5]=PAINTBRUSH_SHAPE_SQUARE;
586
Preset_paintbrush_width[ 6]= 8;
587
Preset_paintbrush_height[ 6]= 8;
588
Paintbrush_type [ 6]=PAINTBRUSH_SHAPE_SQUARE;
590
Preset_paintbrush_width[ 7]=12;
591
Preset_paintbrush_height[ 7]=12;
592
Paintbrush_type [ 7]=PAINTBRUSH_SHAPE_SQUARE;
594
Preset_paintbrush_width[ 8]=16;
595
Preset_paintbrush_height[ 8]=16;
596
Paintbrush_type [ 8]=PAINTBRUSH_SHAPE_SQUARE;
598
Preset_paintbrush_width[ 9]=16;
599
Preset_paintbrush_height[ 9]=16;
600
Paintbrush_type [ 9]=PAINTBRUSH_SHAPE_SIEVE_SQUARE;
602
Preset_paintbrush_width[10]=15;
603
Preset_paintbrush_height[10]=15;
604
Paintbrush_type [10]=PAINTBRUSH_SHAPE_DIAMOND;
606
Preset_paintbrush_width[11]= 5;
607
Preset_paintbrush_height[11]= 5;
608
Paintbrush_type [11]=PAINTBRUSH_SHAPE_DIAMOND;
610
Preset_paintbrush_width[12]= 3;
611
Preset_paintbrush_height[12]= 3;
612
Paintbrush_type [12]=PAINTBRUSH_SHAPE_ROUND;
614
Preset_paintbrush_width[13]= 4;
615
Preset_paintbrush_height[13]= 4;
616
Paintbrush_type [13]=PAINTBRUSH_SHAPE_ROUND;
618
Preset_paintbrush_width[14]= 5;
619
Preset_paintbrush_height[14]= 5;
620
Paintbrush_type [14]=PAINTBRUSH_SHAPE_ROUND;
622
Preset_paintbrush_width[15]= 6;
623
Preset_paintbrush_height[15]= 6;
624
Paintbrush_type [15]=PAINTBRUSH_SHAPE_ROUND;
626
Preset_paintbrush_width[16]= 8;
627
Preset_paintbrush_height[16]= 8;
628
Paintbrush_type [16]=PAINTBRUSH_SHAPE_ROUND;
630
Preset_paintbrush_width[17]=10;
631
Preset_paintbrush_height[17]=10;
632
Paintbrush_type [17]=PAINTBRUSH_SHAPE_ROUND;
634
Preset_paintbrush_width[18]=12;
635
Preset_paintbrush_height[18]=12;
636
Paintbrush_type [18]=PAINTBRUSH_SHAPE_ROUND;
638
Preset_paintbrush_width[19]=14;
639
Preset_paintbrush_height[19]=14;
640
Paintbrush_type [19]=PAINTBRUSH_SHAPE_ROUND;
642
Preset_paintbrush_width[20]=16;
643
Preset_paintbrush_height[20]=16;
644
Paintbrush_type [20]=PAINTBRUSH_SHAPE_ROUND;
646
Preset_paintbrush_width[21]=15;
647
Preset_paintbrush_height[21]=15;
648
Paintbrush_type [21]=PAINTBRUSH_SHAPE_SIEVE_ROUND;
650
Preset_paintbrush_width[22]=11;
651
Preset_paintbrush_height[22]=11;
652
Paintbrush_type [22]=PAINTBRUSH_SHAPE_SIEVE_ROUND;
654
Preset_paintbrush_width[23]= 5;
655
Preset_paintbrush_height[23]= 5;
656
Paintbrush_type [23]=PAINTBRUSH_SHAPE_SIEVE_ROUND;
658
Preset_paintbrush_width[24]= 2;
659
Preset_paintbrush_height[24]= 1;
660
Paintbrush_type [24]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
662
Preset_paintbrush_width[25]= 3;
663
Preset_paintbrush_height[25]= 1;
664
Paintbrush_type [25]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
666
Preset_paintbrush_width[26]= 4;
667
Preset_paintbrush_height[26]= 1;
668
Paintbrush_type [26]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
670
Preset_paintbrush_width[27]= 8;
671
Preset_paintbrush_height[27]= 1;
672
Paintbrush_type [27]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
674
Preset_paintbrush_width[28]= 1;
675
Preset_paintbrush_height[28]= 2;
676
Paintbrush_type [28]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
678
Preset_paintbrush_width[29]= 1;
679
Preset_paintbrush_height[29]= 3;
680
Paintbrush_type [29]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
682
Preset_paintbrush_width[30]= 1;
683
Preset_paintbrush_height[30]= 4;
684
Paintbrush_type [30]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
686
Preset_paintbrush_width[31]= 1;
687
Preset_paintbrush_height[31]= 8;
688
Paintbrush_type [31]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
690
Preset_paintbrush_width[32]= 3;
691
Preset_paintbrush_height[32]= 3;
692
Paintbrush_type [32]=PAINTBRUSH_SHAPE_CROSS;
694
Preset_paintbrush_width[33]= 5;
695
Preset_paintbrush_height[33]= 5;
696
Paintbrush_type [33]=PAINTBRUSH_SHAPE_CROSS;
698
Preset_paintbrush_width[34]= 5;
699
Preset_paintbrush_height[34]= 5;
700
Paintbrush_type [34]=PAINTBRUSH_SHAPE_PLUS;
702
Preset_paintbrush_width[35]=15;
703
Preset_paintbrush_height[35]=15;
704
Paintbrush_type [35]=PAINTBRUSH_SHAPE_PLUS;
706
Preset_paintbrush_width[36]= 2;
707
Preset_paintbrush_height[36]= 2;
708
Paintbrush_type [36]=PAINTBRUSH_SHAPE_SLASH;
710
Preset_paintbrush_width[37]= 4;
711
Preset_paintbrush_height[37]= 4;
712
Paintbrush_type [37]=PAINTBRUSH_SHAPE_SLASH;
714
Preset_paintbrush_width[38]= 8;
715
Preset_paintbrush_height[38]= 8;
716
Paintbrush_type [38]=PAINTBRUSH_SHAPE_SLASH;
718
Preset_paintbrush_width[39]= 2;
719
Preset_paintbrush_height[39]= 2;
720
Paintbrush_type [39]=PAINTBRUSH_SHAPE_ANTISLASH;
722
Preset_paintbrush_width[40]= 4;
723
Preset_paintbrush_height[40]= 4;
724
Paintbrush_type [40]=PAINTBRUSH_SHAPE_ANTISLASH;
726
Preset_paintbrush_width[41]= 8;
727
Preset_paintbrush_height[41]= 8;
728
Paintbrush_type [41]=PAINTBRUSH_SHAPE_ANTISLASH;
730
Preset_paintbrush_width[42]= 4;
731
Preset_paintbrush_height[42]= 4;
732
Paintbrush_type [42]=PAINTBRUSH_SHAPE_RANDOM;
734
Preset_paintbrush_width[43]= 8;
735
Preset_paintbrush_height[43]= 8;
736
Paintbrush_type [43]=PAINTBRUSH_SHAPE_RANDOM;
738
Preset_paintbrush_width[44]=13;
739
Preset_paintbrush_height[44]=13;
740
Paintbrush_type [44]=PAINTBRUSH_SHAPE_RANDOM;
742
Preset_paintbrush_width[45]= 3;
743
Preset_paintbrush_height[45]= 3;
744
Paintbrush_type [45]=PAINTBRUSH_SHAPE_MISC;
746
Preset_paintbrush_width[46]= 3;
747
Preset_paintbrush_height[46]= 3;
748
Paintbrush_type [46]=PAINTBRUSH_SHAPE_MISC;
750
Preset_paintbrush_width[47]= 7;
751
Preset_paintbrush_height[47]= 7;
752
Paintbrush_type [47]=PAINTBRUSH_SHAPE_MISC;
560
gfx->Preset_paintbrush_width [ 0]= 1;
561
gfx->Preset_paintbrush_height[ 0]= 1;
562
gfx->Paintbrush_type [ 0]=PAINTBRUSH_SHAPE_SQUARE;
564
gfx->Preset_paintbrush_width [ 1]= 2;
565
gfx->Preset_paintbrush_height[ 1]= 2;
566
gfx->Paintbrush_type [ 1]=PAINTBRUSH_SHAPE_SQUARE;
568
gfx->Preset_paintbrush_width [ 2]= 3;
569
gfx->Preset_paintbrush_height[ 2]= 3;
570
gfx->Paintbrush_type [ 2]=PAINTBRUSH_SHAPE_SQUARE;
572
gfx->Preset_paintbrush_width [ 3]= 4;
573
gfx->Preset_paintbrush_height[ 3]= 4;
574
gfx->Paintbrush_type [ 3]=PAINTBRUSH_SHAPE_SQUARE;
576
gfx->Preset_paintbrush_width [ 4]= 5;
577
gfx->Preset_paintbrush_height[ 4]= 5;
578
gfx->Paintbrush_type [ 4]=PAINTBRUSH_SHAPE_SQUARE;
580
gfx->Preset_paintbrush_width [ 5]= 7;
581
gfx->Preset_paintbrush_height[ 5]= 7;
582
gfx->Paintbrush_type [ 5]=PAINTBRUSH_SHAPE_SQUARE;
584
gfx->Preset_paintbrush_width [ 6]= 8;
585
gfx->Preset_paintbrush_height[ 6]= 8;
586
gfx->Paintbrush_type [ 6]=PAINTBRUSH_SHAPE_SQUARE;
588
gfx->Preset_paintbrush_width [ 7]=12;
589
gfx->Preset_paintbrush_height[ 7]=12;
590
gfx->Paintbrush_type [ 7]=PAINTBRUSH_SHAPE_SQUARE;
592
gfx->Preset_paintbrush_width [ 8]=16;
593
gfx->Preset_paintbrush_height[ 8]=16;
594
gfx->Paintbrush_type [ 8]=PAINTBRUSH_SHAPE_SQUARE;
596
gfx->Preset_paintbrush_width [ 9]=16;
597
gfx->Preset_paintbrush_height[ 9]=16;
598
gfx->Paintbrush_type [ 9]=PAINTBRUSH_SHAPE_SIEVE_SQUARE;
600
gfx->Preset_paintbrush_width [10]=15;
601
gfx->Preset_paintbrush_height[10]=15;
602
gfx->Paintbrush_type [10]=PAINTBRUSH_SHAPE_DIAMOND;
604
gfx->Preset_paintbrush_width [11]= 5;
605
gfx->Preset_paintbrush_height[11]= 5;
606
gfx->Paintbrush_type [11]=PAINTBRUSH_SHAPE_DIAMOND;
608
gfx->Preset_paintbrush_width [12]= 3;
609
gfx->Preset_paintbrush_height[12]= 3;
610
gfx->Paintbrush_type [12]=PAINTBRUSH_SHAPE_ROUND;
612
gfx->Preset_paintbrush_width [13]= 4;
613
gfx->Preset_paintbrush_height[13]= 4;
614
gfx->Paintbrush_type [13]=PAINTBRUSH_SHAPE_ROUND;
616
gfx->Preset_paintbrush_width [14]= 5;
617
gfx->Preset_paintbrush_height[14]= 5;
618
gfx->Paintbrush_type [14]=PAINTBRUSH_SHAPE_ROUND;
620
gfx->Preset_paintbrush_width [15]= 6;
621
gfx->Preset_paintbrush_height[15]= 6;
622
gfx->Paintbrush_type [15]=PAINTBRUSH_SHAPE_ROUND;
624
gfx->Preset_paintbrush_width [16]= 8;
625
gfx->Preset_paintbrush_height[16]= 8;
626
gfx->Paintbrush_type [16]=PAINTBRUSH_SHAPE_ROUND;
628
gfx->Preset_paintbrush_width [17]=10;
629
gfx->Preset_paintbrush_height[17]=10;
630
gfx->Paintbrush_type [17]=PAINTBRUSH_SHAPE_ROUND;
632
gfx->Preset_paintbrush_width [18]=12;
633
gfx->Preset_paintbrush_height[18]=12;
634
gfx->Paintbrush_type [18]=PAINTBRUSH_SHAPE_ROUND;
636
gfx->Preset_paintbrush_width [19]=14;
637
gfx->Preset_paintbrush_height[19]=14;
638
gfx->Paintbrush_type [19]=PAINTBRUSH_SHAPE_ROUND;
640
gfx->Preset_paintbrush_width [20]=16;
641
gfx->Preset_paintbrush_height[20]=16;
642
gfx->Paintbrush_type [20]=PAINTBRUSH_SHAPE_ROUND;
644
gfx->Preset_paintbrush_width [21]=15;
645
gfx->Preset_paintbrush_height[21]=15;
646
gfx->Paintbrush_type [21]=PAINTBRUSH_SHAPE_SIEVE_ROUND;
648
gfx->Preset_paintbrush_width [22]=11;
649
gfx->Preset_paintbrush_height[22]=11;
650
gfx->Paintbrush_type [22]=PAINTBRUSH_SHAPE_SIEVE_ROUND;
652
gfx->Preset_paintbrush_width [23]= 5;
653
gfx->Preset_paintbrush_height[23]= 5;
654
gfx->Paintbrush_type [23]=PAINTBRUSH_SHAPE_SIEVE_ROUND;
656
gfx->Preset_paintbrush_width [24]= 2;
657
gfx->Preset_paintbrush_height[24]= 1;
658
gfx->Paintbrush_type [24]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
660
gfx->Preset_paintbrush_width [25]= 3;
661
gfx->Preset_paintbrush_height[25]= 1;
662
gfx->Paintbrush_type [25]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
664
gfx->Preset_paintbrush_width [26]= 4;
665
gfx->Preset_paintbrush_height[26]= 1;
666
gfx->Paintbrush_type [26]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
668
gfx->Preset_paintbrush_width [27]= 8;
669
gfx->Preset_paintbrush_height[27]= 1;
670
gfx->Paintbrush_type [27]=PAINTBRUSH_SHAPE_HORIZONTAL_BAR;
672
gfx->Preset_paintbrush_width [28]= 1;
673
gfx->Preset_paintbrush_height[28]= 2;
674
gfx->Paintbrush_type [28]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
676
gfx->Preset_paintbrush_width [29]= 1;
677
gfx->Preset_paintbrush_height[29]= 3;
678
gfx->Paintbrush_type [29]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
680
gfx->Preset_paintbrush_width [30]= 1;
681
gfx->Preset_paintbrush_height[30]= 4;
682
gfx->Paintbrush_type [30]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
684
gfx->Preset_paintbrush_width [31]= 1;
685
gfx->Preset_paintbrush_height[31]= 8;
686
gfx->Paintbrush_type [31]=PAINTBRUSH_SHAPE_VERTICAL_BAR;
688
gfx->Preset_paintbrush_width [32]= 3;
689
gfx->Preset_paintbrush_height[32]= 3;
690
gfx->Paintbrush_type [32]=PAINTBRUSH_SHAPE_CROSS;
692
gfx->Preset_paintbrush_width [33]= 5;
693
gfx->Preset_paintbrush_height[33]= 5;
694
gfx->Paintbrush_type [33]=PAINTBRUSH_SHAPE_CROSS;
696
gfx->Preset_paintbrush_width [34]= 5;
697
gfx->Preset_paintbrush_height[34]= 5;
698
gfx->Paintbrush_type [34]=PAINTBRUSH_SHAPE_PLUS;
700
gfx->Preset_paintbrush_width [35]=15;
701
gfx->Preset_paintbrush_height[35]=15;
702
gfx->Paintbrush_type [35]=PAINTBRUSH_SHAPE_PLUS;
704
gfx->Preset_paintbrush_width [36]= 2;
705
gfx->Preset_paintbrush_height[36]= 2;
706
gfx->Paintbrush_type [36]=PAINTBRUSH_SHAPE_SLASH;
708
gfx->Preset_paintbrush_width [37]= 4;
709
gfx->Preset_paintbrush_height[37]= 4;
710
gfx->Paintbrush_type [37]=PAINTBRUSH_SHAPE_SLASH;
712
gfx->Preset_paintbrush_width [38]= 8;
713
gfx->Preset_paintbrush_height[38]= 8;
714
gfx->Paintbrush_type [38]=PAINTBRUSH_SHAPE_SLASH;
716
gfx->Preset_paintbrush_width [39]= 2;
717
gfx->Preset_paintbrush_height[39]= 2;
718
gfx->Paintbrush_type [39]=PAINTBRUSH_SHAPE_ANTISLASH;
720
gfx->Preset_paintbrush_width [40]= 4;
721
gfx->Preset_paintbrush_height[40]= 4;
722
gfx->Paintbrush_type [40]=PAINTBRUSH_SHAPE_ANTISLASH;
724
gfx->Preset_paintbrush_width [41]= 8;
725
gfx->Preset_paintbrush_height[41]= 8;
726
gfx->Paintbrush_type [41]=PAINTBRUSH_SHAPE_ANTISLASH;
728
gfx->Preset_paintbrush_width [42]= 4;
729
gfx->Preset_paintbrush_height[42]= 4;
730
gfx->Paintbrush_type [42]=PAINTBRUSH_SHAPE_RANDOM;
732
gfx->Preset_paintbrush_width [43]= 8;
733
gfx->Preset_paintbrush_height[43]= 8;
734
gfx->Paintbrush_type [43]=PAINTBRUSH_SHAPE_RANDOM;
736
gfx->Preset_paintbrush_width [44]=13;
737
gfx->Preset_paintbrush_height[44]=13;
738
gfx->Paintbrush_type [44]=PAINTBRUSH_SHAPE_RANDOM;
740
gfx->Preset_paintbrush_width [45]= 3;
741
gfx->Preset_paintbrush_height[45]= 3;
742
gfx->Paintbrush_type [45]=PAINTBRUSH_SHAPE_MISC;
744
gfx->Preset_paintbrush_width [46]= 3;
745
gfx->Preset_paintbrush_height[46]= 3;
746
gfx->Paintbrush_type [46]=PAINTBRUSH_SHAPE_MISC;
748
gfx->Preset_paintbrush_width [47]= 7;
749
gfx->Preset_paintbrush_height[47]= 7;
750
gfx->Paintbrush_type [47]=PAINTBRUSH_SHAPE_MISC;
754
752
for (index=0;index<NB_PAINTBRUSH_SPRITES;index++)
756
Preset_paintbrush_offset_X[index]=(Preset_paintbrush_width[index]>>1);
757
Preset_paintbrush_offset_Y[index]=(Preset_paintbrush_height[index]>>1);
754
gfx->Preset_paintbrush_offset_X[index]=(gfx->Preset_paintbrush_width [index]>>1);
755
gfx->Preset_paintbrush_offset_Y[index]=(gfx->Preset_paintbrush_height[index]>>1);
760
T_Gui_skin * Load_graphics(const char * skin_file)
763
char filename[MAX_PATH_CHARACTERS];
766
gfx = (T_Gui_skin *)malloc(sizeof(T_Gui_skin));
769
sprintf(Gui_loading_error_message, "Not enough memory to read skin file\n");
773
// Read the "skin" file
774
strcpy(filename,Data_directory);
775
strcat(filename,"skins" PATH_SEPARATOR);
776
strcat(filename,skin_file);
778
gui=IMG_Load(filename);
781
sprintf(Gui_loading_error_message, "Unable to load the skin image (missing? not an image file?)\n");
785
if (Parse_skin(gui, gfx))
787
SDL_FreeSurface(gui);
791
SDL_FreeSurface(gui);
795
// ---- font loading -----
797
byte Parse_font(SDL_Surface * image, byte * font)
807
sprintf(Gui_loading_error_message, "Error in font file: Image width is not a multiple of 8.\n");
810
if (image->w * image->h < 8*8*256)
812
sprintf(Gui_loading_error_message, "Error in font file: Image is too small to be a 256-character 8x8 font.\n");
815
chars_per_line = image->w/8;
817
for (character=0; character < 256; character++)
824
color = Get_SDL_pixel_8(image, (character % chars_per_line)*8+x, (character / chars_per_line)*8+y);
827
sprintf(Gui_loading_error_message, "Error in font file: Only colors 0 and 1 can be used for the font.\n");
830
// Put it in font. 0 = BG, 1 = FG.
831
font[character*64 + y*8 + x]=color;
838
byte * Load_font(const char * font_name)
841
char filename[MAX_PATH_CHARACTERS];
844
font = (byte *)malloc(8*8*256);
847
sprintf(Gui_loading_error_message, "Not enough memory to read font file\n");
851
// Read the file containing the image
852
sprintf(filename,"%sskins%s%s", Data_directory, PATH_SEPARATOR, font_name);
854
image=IMG_Load(filename);
857
sprintf(Gui_loading_error_message, "Unable to load the skin image (missing? not an image file?)\n");
861
if (Parse_font(image, font))
863
SDL_FreeSurface(image);
867
SDL_FreeSurface(image);
1145
1249
byte number; // Num�ro de l'option en cours d'auto-initialisation
1146
1250
byte Button; // Button souris en cours d'auto-initialisation
1147
1251
byte stack_index; // Taille de la pile en cours d'auto-initialisation
1252
#define HIDE_CURSOR 1
1253
#define FAST_MOUSE 1
1149
1255
// Auto-initialisation des op�rations (vers des actions inoffensives)
1151
1257
for (number=0;number<NB_OPERATIONS;number++)
1152
1258
for (Button=0;Button<3;Button++)
1153
1259
for (stack_index=0;stack_index<OPERATION_STACK_SIZE;stack_index++)
1154
Init_operation(number,Button,stack_index,Print_coordinates,0);
1260
Init_operation(number,Button,stack_index,Print_coordinates,HIDE_CURSOR,FAST_MOUSE);
1157
1263
// Ici viennent les d�clarations d�taill�es des op�rations
1158
1264
Init_operation(OPERATION_CONTINUOUS_DRAW,1,0,
1159
Freehand_mode1_1_0,1);
1265
Freehand_mode1_1_0,HIDE_CURSOR,0);
1160
1266
Init_operation(OPERATION_CONTINUOUS_DRAW,1,2,
1161
Freehand_mode1_1_2,0);
1267
Freehand_mode1_1_2,0,0);
1162
1268
Init_operation(OPERATION_CONTINUOUS_DRAW,0,2,
1163
Freehand_mode12_0_2,0);
1269
Freehand_mode12_0_2,0,0);
1164
1270
Init_operation(OPERATION_CONTINUOUS_DRAW,2,0,
1165
Freehand_mode1_2_0,1);
1271
Freehand_mode1_2_0,HIDE_CURSOR,0);
1166
1272
Init_operation(OPERATION_CONTINUOUS_DRAW,2,2,
1167
Freehand_mode1_2_2,0);
1273
Freehand_mode1_2_2,0,0);
1169
1275
Init_operation(OPERATION_DISCONTINUOUS_DRAW,1,0,
1170
Freehand_mode2_1_0,1);
1276
Freehand_mode2_1_0,HIDE_CURSOR,0);
1171
1277
Init_operation(OPERATION_DISCONTINUOUS_DRAW,1,2,
1172
Freehand_mode2_1_2,0);
1278
Freehand_mode2_1_2,0,0);
1173
1279
Init_operation(OPERATION_DISCONTINUOUS_DRAW,0,2,
1174
Freehand_mode12_0_2,0);
1280
Freehand_mode12_0_2,0,0);
1175
1281
Init_operation(OPERATION_DISCONTINUOUS_DRAW,2,0,
1176
Freehand_mode2_2_0,1);
1282
Freehand_mode2_2_0,HIDE_CURSOR,0);
1177
1283
Init_operation(OPERATION_DISCONTINUOUS_DRAW,2,2,
1178
Freehand_mode2_2_2,0);
1284
Freehand_mode2_2_2,0,0);
1180
1286
Init_operation(OPERATION_POINT_DRAW,1,0,
1181
Freehand_mode3_1_0,1);
1287
Freehand_mode3_1_0,HIDE_CURSOR,FAST_MOUSE);
1182
1288
Init_operation(OPERATION_POINT_DRAW,2,0,
1183
Freehand_Mode3_2_0,1);
1289
Freehand_Mode3_2_0,HIDE_CURSOR,FAST_MOUSE);
1184
1290
Init_operation(OPERATION_POINT_DRAW,0,1,
1185
Freehand_mode3_0_1,0);
1291
Freehand_mode3_0_1,0,FAST_MOUSE);
1187
1293
Init_operation(OPERATION_LINE,1,0,
1294
Line_12_0,HIDE_CURSOR,FAST_MOUSE);
1189
1295
Init_operation(OPERATION_LINE,1,5,
1296
Line_12_5,0,FAST_MOUSE);
1191
1297
Init_operation(OPERATION_LINE,0,5,
1298
Line_0_5,HIDE_CURSOR,FAST_MOUSE);
1193
1299
Init_operation(OPERATION_LINE,2,0,
1300
Line_12_0,HIDE_CURSOR,FAST_MOUSE);
1195
1301
Init_operation(OPERATION_LINE,2,5,
1302
Line_12_5,0,FAST_MOUSE);
1198
1304
Init_operation(OPERATION_K_LIGNE,1,0,
1305
K_line_12_0,HIDE_CURSOR,FAST_MOUSE);
1200
1306
Init_operation(OPERATION_K_LIGNE,1,6,
1307
K_line_12_6,0,FAST_MOUSE);
1202
1308
Init_operation(OPERATION_K_LIGNE,1,7,
1204
Init_operation(OPERATION_K_LIGNE,2,0,
1309
K_line_12_7,HIDE_CURSOR,FAST_MOUSE);
1310
Init_operation(OPERATION_K_LIGNE,2,FAST_MOUSE,
1311
K_line_12_0,HIDE_CURSOR,FAST_MOUSE);
1206
1312
Init_operation(OPERATION_K_LIGNE,2,6,
1313
K_line_12_6,0,FAST_MOUSE);
1208
1314
Init_operation(OPERATION_K_LIGNE,2,7,
1315
K_line_12_7,HIDE_CURSOR,FAST_MOUSE);
1210
1316
Init_operation(OPERATION_K_LIGNE,0,6,
1317
K_line_0_6,HIDE_CURSOR,FAST_MOUSE);
1212
1318
Init_operation(OPERATION_K_LIGNE,0,7,
1319
K_line_12_6,0,FAST_MOUSE);
1215
1321
Init_operation(OPERATION_EMPTY_RECTANGLE,1,0,
1322
Rectangle_12_0,HIDE_CURSOR,FAST_MOUSE);
1217
1323
Init_operation(OPERATION_EMPTY_RECTANGLE,2,0,
1324
Rectangle_12_0,HIDE_CURSOR,FAST_MOUSE);
1219
1325
Init_operation(OPERATION_EMPTY_RECTANGLE,1,5,
1326
Rectangle_12_5,0,FAST_MOUSE);
1221
1327
Init_operation(OPERATION_EMPTY_RECTANGLE,2,5,
1328
Rectangle_12_5,0,FAST_MOUSE);
1223
1329
Init_operation(OPERATION_EMPTY_RECTANGLE,0,5,
1224
Empty_rectangle_0_5,1);
1330
Empty_rectangle_0_5,HIDE_CURSOR,FAST_MOUSE);
1226
1332
Init_operation(OPERATION_FILLED_RECTANGLE,1,0,
1333
Rectangle_12_0,HIDE_CURSOR,FAST_MOUSE);
1228
1334
Init_operation(OPERATION_FILLED_RECTANGLE,2,0,
1335
Rectangle_12_0,HIDE_CURSOR,FAST_MOUSE);
1230
1336
Init_operation(OPERATION_FILLED_RECTANGLE,1,5,
1337
Rectangle_12_5,0,FAST_MOUSE);
1232
1338
Init_operation(OPERATION_FILLED_RECTANGLE,2,5,
1339
Rectangle_12_5,0,FAST_MOUSE);
1234
1340
Init_operation(OPERATION_FILLED_RECTANGLE,0,5,
1235
Filled_rectangle_0_5,1);
1341
Filled_rectangle_0_5,HIDE_CURSOR,FAST_MOUSE);
1237
1343
Init_operation(OPERATION_EMPTY_CIRCLE,1,0,
1344
Circle_12_0,HIDE_CURSOR,FAST_MOUSE);
1239
1345
Init_operation(OPERATION_EMPTY_CIRCLE,2,0,
1346
Circle_12_0,HIDE_CURSOR,FAST_MOUSE);
1241
1347
Init_operation(OPERATION_EMPTY_CIRCLE,1,5,
1348
Circle_12_5,0,FAST_MOUSE);
1243
1349
Init_operation(OPERATION_EMPTY_CIRCLE,2,5,
1350
Circle_12_5,0,FAST_MOUSE);
1245
1351
Init_operation(OPERATION_EMPTY_CIRCLE,0,5,
1246
Empty_circle_0_5,1);
1352
Empty_circle_0_5,HIDE_CURSOR,FAST_MOUSE);
1248
1354
Init_operation(OPERATION_FILLED_CIRCLE,1,0,
1355
Circle_12_0,HIDE_CURSOR,FAST_MOUSE);
1250
1356
Init_operation(OPERATION_FILLED_CIRCLE,2,0,
1357
Circle_12_0,HIDE_CURSOR,FAST_MOUSE);
1252
1358
Init_operation(OPERATION_FILLED_CIRCLE,1,5,
1359
Circle_12_5,0,FAST_MOUSE);
1254
1360
Init_operation(OPERATION_FILLED_CIRCLE,2,5,
1361
Circle_12_5,0,FAST_MOUSE);
1256
1362
Init_operation(OPERATION_FILLED_CIRCLE,0,5,
1257
Filled_circle_0_5,1);
1363
Filled_circle_0_5,HIDE_CURSOR,FAST_MOUSE);
1259
1365
Init_operation(OPERATION_EMPTY_ELLIPSE,1,0,
1366
Ellipse_12_0,HIDE_CURSOR,FAST_MOUSE);
1261
1367
Init_operation(OPERATION_EMPTY_ELLIPSE,2,0,
1368
Ellipse_12_0,HIDE_CURSOR,FAST_MOUSE);
1263
1369
Init_operation(OPERATION_EMPTY_ELLIPSE,1,5,
1370
Ellipse_12_5,0,FAST_MOUSE);
1265
1371
Init_operation(OPERATION_EMPTY_ELLIPSE,2,5,
1372
Ellipse_12_5,0,FAST_MOUSE);
1267
1373
Init_operation(OPERATION_EMPTY_ELLIPSE,0,5,
1268
Empty_ellipse_0_5,1);
1374
Empty_ellipse_0_5,HIDE_CURSOR,FAST_MOUSE);
1270
1376
Init_operation(OPERATION_FILLED_ELLIPSE,1,0,
1377
Ellipse_12_0,HIDE_CURSOR,FAST_MOUSE);
1272
1378
Init_operation(OPERATION_FILLED_ELLIPSE,2,0,
1379
Ellipse_12_0,HIDE_CURSOR,FAST_MOUSE);
1274
1380
Init_operation(OPERATION_FILLED_ELLIPSE,1,5,
1381
Ellipse_12_5,0,FAST_MOUSE);
1276
1382
Init_operation(OPERATION_FILLED_ELLIPSE,2,5,
1383
Ellipse_12_5,0,FAST_MOUSE);
1278
1384
Init_operation(OPERATION_FILLED_ELLIPSE,0,5,
1279
Filled_ellipse_0_5,1);
1385
Filled_ellipse_0_5,HIDE_CURSOR,FAST_MOUSE);
1281
1387
Init_operation(OPERATION_FILL,1,0,
1388
Fill_1_0,0,FAST_MOUSE);
1283
1389
Init_operation(OPERATION_FILL,2,0,
1390
Fill_2_0,0,FAST_MOUSE);
1286
1392
Init_operation(OPERATION_REPLACE,1,0,
1393
Replace_1_0,0,FAST_MOUSE);
1288
1394
Init_operation(OPERATION_REPLACE,2,0,
1395
Replace_2_0,0,FAST_MOUSE);
1291
1397
Init_operation(OPERATION_GRAB_BRUSH,1,0,
1398
Brush_12_0,HIDE_CURSOR,FAST_MOUSE);
1293
1399
Init_operation(OPERATION_GRAB_BRUSH,2,0,
1400
Brush_12_0,HIDE_CURSOR,FAST_MOUSE);
1295
1401
Init_operation(OPERATION_GRAB_BRUSH,1,5,
1402
Brush_12_5,0,FAST_MOUSE);
1297
1403
Init_operation(OPERATION_GRAB_BRUSH,2,5,
1404
Brush_12_5,0,FAST_MOUSE);
1299
1405
Init_operation(OPERATION_GRAB_BRUSH,0,5,
1406
Brush_0_5,HIDE_CURSOR,FAST_MOUSE);
1302
1408
Init_operation(OPERATION_STRETCH_BRUSH,1,0,
1303
Stretch_brush_12_0,1);
1409
Stretch_brush_12_0,HIDE_CURSOR,FAST_MOUSE);
1304
1410
Init_operation(OPERATION_STRETCH_BRUSH,2,0,
1305
Stretch_brush_12_0,1);
1411
Stretch_brush_12_0,HIDE_CURSOR,FAST_MOUSE);
1306
1412
Init_operation(OPERATION_STRETCH_BRUSH,1,7,
1307
Stretch_brush_1_7,0);
1413
Stretch_brush_1_7,0,FAST_MOUSE);
1308
1414
Init_operation(OPERATION_STRETCH_BRUSH,0,7,
1309
Stretch_brush_0_7,0);
1415
Stretch_brush_0_7,0,FAST_MOUSE);
1310
1416
Init_operation(OPERATION_STRETCH_BRUSH,2,7,
1311
Stretch_brush_2_7,1);
1417
Stretch_brush_2_7,HIDE_CURSOR,FAST_MOUSE);
1313
1419
Init_operation(OPERATION_ROTATE_BRUSH,1,0,
1314
Rotate_brush_12_0,1);
1420
Rotate_brush_12_0,HIDE_CURSOR,FAST_MOUSE);
1315
1421
Init_operation(OPERATION_ROTATE_BRUSH,2,0,
1316
Rotate_brush_12_0,1);
1422
Rotate_brush_12_0,HIDE_CURSOR,FAST_MOUSE);
1317
1423
Init_operation(OPERATION_ROTATE_BRUSH,1,5,
1318
Rotate_brush_1_5,0);
1424
Rotate_brush_1_5,0,FAST_MOUSE);
1319
1425
Init_operation(OPERATION_ROTATE_BRUSH,0,5,
1320
Rotate_brush_0_5,0);
1426
Rotate_brush_0_5,0,FAST_MOUSE);
1321
1427
Init_operation(OPERATION_ROTATE_BRUSH,2,5,
1322
Rotate_brush_2_5,1);
1428
Rotate_brush_2_5,HIDE_CURSOR,FAST_MOUSE);
1324
1430
Init_operation(OPERATION_DISTORT_BRUSH,0,0,
1325
Distort_brush_0_0,0);
1431
Distort_brush_0_0,0,FAST_MOUSE);
1326
1432
Init_operation(OPERATION_DISTORT_BRUSH,1,0,
1327
Distort_brush_1_0,0);
1433
Distort_brush_1_0,0,FAST_MOUSE);
1328
1434
Init_operation(OPERATION_DISTORT_BRUSH,1,8,
1329
Distort_brush_1_8,0);
1435
Distort_brush_1_8,0,FAST_MOUSE);
1330
1436
Init_operation(OPERATION_DISTORT_BRUSH,2,8,
1331
Distort_brush_2_8,1);
1437
Distort_brush_2_8,HIDE_CURSOR,FAST_MOUSE);
1332
1438
Init_operation(OPERATION_DISTORT_BRUSH,2,0,
1333
Distort_brush_2_0,1);
1439
Distort_brush_2_0,HIDE_CURSOR,FAST_MOUSE);
1334
1440
Init_operation(OPERATION_DISTORT_BRUSH,1,9,
1335
Distort_brush_1_9,0);
1441
Distort_brush_1_9,0,FAST_MOUSE);
1336
1442
Init_operation(OPERATION_DISTORT_BRUSH,0,9,
1337
Distort_brush_0_9,0);
1443
Distort_brush_0_9,0,FAST_MOUSE);
1340
1446
Init_operation(OPERATION_POLYBRUSH,1,0,
1341
Filled_polyform_12_0,1);
1447
Filled_polyform_12_0,HIDE_CURSOR,FAST_MOUSE);
1342
1448
Init_operation(OPERATION_POLYBRUSH,2,0,
1343
Filled_polyform_12_0,1);
1449
Filled_polyform_12_0,HIDE_CURSOR,FAST_MOUSE);
1344
1450
Init_operation(OPERATION_POLYBRUSH,1,8,
1451
Polybrush_12_8,0,0);
1346
1452
Init_operation(OPERATION_POLYBRUSH,2,8,
1453
Polybrush_12_8,0,0);
1348
1454
Init_operation(OPERATION_POLYBRUSH,0,8,
1349
Filled_polyform_0_8,0);
1455
Filled_polyform_0_8,0,FAST_MOUSE);
1351
1457
Colorpicker_color=-1;
1352
1458
Init_operation(OPERATION_COLORPICK,1,0,
1353
Colorpicker_12_0,1);
1459
Colorpicker_12_0,HIDE_CURSOR,FAST_MOUSE);
1354
1460
Init_operation(OPERATION_COLORPICK,2,0,
1355
Colorpicker_12_0,0);
1461
Colorpicker_12_0,0,FAST_MOUSE);
1356
1462
Init_operation(OPERATION_COLORPICK,1,1,
1463
Colorpicker_1_1,0,FAST_MOUSE);
1358
1464
Init_operation(OPERATION_COLORPICK,2,1,
1465
Colorpicker_2_1,0,FAST_MOUSE);
1360
1466
Init_operation(OPERATION_COLORPICK,0,1,
1467
Colorpicker_0_1,HIDE_CURSOR,FAST_MOUSE);
1363
1469
Init_operation(OPERATION_MAGNIFY,1,0,
1470
Magnifier_12_0,0,FAST_MOUSE);
1365
1471
Init_operation(OPERATION_MAGNIFY,2,0,
1472
Magnifier_12_0,0,FAST_MOUSE);
1368
1474
Init_operation(OPERATION_4_POINTS_CURVE,1,0,
1369
Curve_34_points_1_0,1);
1475
Curve_34_points_1_0,HIDE_CURSOR,FAST_MOUSE);
1370
1476
Init_operation(OPERATION_4_POINTS_CURVE,2,0,
1371
Curve_34_points_2_0,1);
1477
Curve_34_points_2_0,HIDE_CURSOR,FAST_MOUSE);
1372
1478
Init_operation(OPERATION_4_POINTS_CURVE,1,5,
1373
Curve_34_points_1_5,0);
1479
Curve_34_points_1_5,0,FAST_MOUSE);
1374
1480
Init_operation(OPERATION_4_POINTS_CURVE,2,5,
1375
Curve_34_points_2_5,0);
1481
Curve_34_points_2_5,0,FAST_MOUSE);
1376
1482
Init_operation(OPERATION_4_POINTS_CURVE,0,5,
1377
Curve_4_points_0_5,1);
1483
Curve_4_points_0_5,HIDE_CURSOR,FAST_MOUSE);
1378
1484
Init_operation(OPERATION_4_POINTS_CURVE,1,9,
1379
Curve_4_points_1_9,0);
1485
Curve_4_points_1_9,0,FAST_MOUSE);
1380
1486
Init_operation(OPERATION_4_POINTS_CURVE,2,9,
1381
Curve_4_points_2_9,0);
1487
Curve_4_points_2_9,0,FAST_MOUSE);
1383
1489
Init_operation(OPERATION_3_POINTS_CURVE,1,0,
1384
Curve_34_points_1_0,1);
1490
Curve_34_points_1_0,HIDE_CURSOR,FAST_MOUSE);
1385
1491
Init_operation(OPERATION_3_POINTS_CURVE,2,0,
1386
Curve_34_points_2_0,1);
1492
Curve_34_points_2_0,HIDE_CURSOR,FAST_MOUSE);
1387
1493
Init_operation(OPERATION_3_POINTS_CURVE,1,5,
1388
Curve_34_points_1_5,0);
1494
Curve_34_points_1_5,0,FAST_MOUSE);
1389
1495
Init_operation(OPERATION_3_POINTS_CURVE,2,5,
1390
Curve_34_points_2_5,0);
1496
Curve_34_points_2_5,0,FAST_MOUSE);
1391
1497
Init_operation(OPERATION_3_POINTS_CURVE,0,5,
1392
Curve_3_points_0_5,1);
1498
Curve_3_points_0_5,HIDE_CURSOR,FAST_MOUSE);
1393
1499
Init_operation(OPERATION_3_POINTS_CURVE,0,11,
1394
Curve_3_points_0_11,0);
1500
Curve_3_points_0_11,0,FAST_MOUSE);
1395
1501
Init_operation(OPERATION_3_POINTS_CURVE,1,11,
1396
Curve_3_points_12_11,0);
1502
Curve_3_points_12_11,0,FAST_MOUSE);
1397
1503
Init_operation(OPERATION_3_POINTS_CURVE,2,11,
1398
Curve_3_points_12_11,0);
1504
Curve_3_points_12_11,0,FAST_MOUSE);
1400
1506
Init_operation(OPERATION_AIRBRUSH,1,0,
1402
1508
Init_operation(OPERATION_AIRBRUSH,2,0,
1404
1510
Init_operation(OPERATION_AIRBRUSH,1,2,
1406
1512
Init_operation(OPERATION_AIRBRUSH,2,2,
1408
1514
Init_operation(OPERATION_AIRBRUSH,0,2,
1411
1517
Init_operation(OPERATION_POLYGON,1,0,
1518
Polygon_12_0,HIDE_CURSOR,FAST_MOUSE);
1413
1519
Init_operation(OPERATION_POLYGON,2,0,
1520
Polygon_12_0,HIDE_CURSOR,FAST_MOUSE);
1415
1521
Init_operation(OPERATION_POLYGON,1,8,
1522
K_line_12_6,0,FAST_MOUSE);
1417
1523
Init_operation(OPERATION_POLYGON,2,8,
1524
K_line_12_6,0,FAST_MOUSE);
1419
1525
Init_operation(OPERATION_POLYGON,1,9,
1526
Polygon_12_9,HIDE_CURSOR,FAST_MOUSE);
1421
1527
Init_operation(OPERATION_POLYGON,2,9,
1528
Polygon_12_9,HIDE_CURSOR,FAST_MOUSE);
1423
1529
Init_operation(OPERATION_POLYGON,0,8,
1530
K_line_0_6,HIDE_CURSOR,FAST_MOUSE);
1425
1531
Init_operation(OPERATION_POLYGON,0,9,
1532
K_line_12_6,0,FAST_MOUSE);
1428
1534
Init_operation(OPERATION_POLYFILL,1,0,
1535
Polyfill_12_0,HIDE_CURSOR,FAST_MOUSE);
1430
1536
Init_operation(OPERATION_POLYFILL,2,0,
1537
Polyfill_12_0,HIDE_CURSOR,FAST_MOUSE);
1432
1538
Init_operation(OPERATION_POLYFILL,1,8,
1539
Polyfill_12_8,0,FAST_MOUSE);
1434
1540
Init_operation(OPERATION_POLYFILL,2,8,
1541
Polyfill_12_8,0,FAST_MOUSE);
1436
1542
Init_operation(OPERATION_POLYFILL,1,9,
1543
Polyfill_12_9,0,FAST_MOUSE);
1438
1544
Init_operation(OPERATION_POLYFILL,2,9,
1545
Polyfill_12_9,0,FAST_MOUSE);
1440
1546
Init_operation(OPERATION_POLYFILL,0,8,
1547
Polyfill_0_8,HIDE_CURSOR,FAST_MOUSE);
1442
1548
Init_operation(OPERATION_POLYFILL,0,9,
1549
Polyfill_12_8,0,FAST_MOUSE);
1445
1551
Init_operation(OPERATION_POLYFORM,1,0,
1552
Polyform_12_0,HIDE_CURSOR,FAST_MOUSE);
1447
1553
Init_operation(OPERATION_POLYFORM,2,0,
1554
Polyform_12_0,HIDE_CURSOR,FAST_MOUSE);
1449
1555
Init_operation(OPERATION_POLYFORM,1,8,
1451
1557
Init_operation(OPERATION_POLYFORM,2,8,
1453
1559
Init_operation(OPERATION_POLYFORM,0,8,
1560
Polyform_0_8,0,FAST_MOUSE);
1456
1562
Init_operation(OPERATION_FILLED_POLYFORM,1,0,
1457
Filled_polyform_12_0,1);
1563
Filled_polyform_12_0,HIDE_CURSOR,FAST_MOUSE);
1458
1564
Init_operation(OPERATION_FILLED_POLYFORM,2,0,
1459
Filled_polyform_12_0,1);
1565
Filled_polyform_12_0,HIDE_CURSOR,FAST_MOUSE);
1460
1566
Init_operation(OPERATION_FILLED_POLYFORM,1,8,
1461
Filled_polyform_12_8,0);
1567
Filled_polyform_12_8,0,0);
1462
1568
Init_operation(OPERATION_FILLED_POLYFORM,2,8,
1463
Filled_polyform_12_8,0);
1569
Filled_polyform_12_8,0,0);
1464
1570
Init_operation(OPERATION_FILLED_POLYFORM,0,8,
1465
Filled_polyform_0_8,0);
1571
Filled_polyform_0_8,0,FAST_MOUSE);
1467
1573
Init_operation(OPERATION_FILLED_CONTOUR,1,0,
1468
Filled_polyform_12_0,1);
1574
Filled_polyform_12_0,HIDE_CURSOR,0);
1469
1575
Init_operation(OPERATION_FILLED_CONTOUR,2,0,
1470
Filled_polyform_12_0,1);
1576
Filled_polyform_12_0,HIDE_CURSOR,0);
1471
1577
Init_operation(OPERATION_FILLED_CONTOUR,1,8,
1472
Filled_polyform_12_8,0);
1578
Filled_polyform_12_8,0,0);
1473
1579
Init_operation(OPERATION_FILLED_CONTOUR,2,8,
1474
Filled_polyform_12_8,0);
1580
Filled_polyform_12_8,0,0);
1475
1581
Init_operation(OPERATION_FILLED_CONTOUR,0,8,
1476
Filled_contour_0_8,0);
1582
Filled_contour_0_8,0,0);
1478
1584
Init_operation(OPERATION_SCROLL,1,0,
1585
Scroll_12_0,HIDE_CURSOR,FAST_MOUSE);
1480
1586
Init_operation(OPERATION_SCROLL,2,0,
1587
Scroll_12_0,HIDE_CURSOR,FAST_MOUSE);
1482
1588
Init_operation(OPERATION_SCROLL,1,4,
1589
Scroll_12_4,0,FAST_MOUSE);
1484
1590
Init_operation(OPERATION_SCROLL,2,4,
1591
Scroll_12_4,0,FAST_MOUSE);
1486
1592
Init_operation(OPERATION_SCROLL,0,4,
1489
Init_operation(OPERATION_GRAD_CIRCLE,1,0,Grad_circle_12_0,1);
1490
Init_operation(OPERATION_GRAD_CIRCLE,2,0,Grad_circle_12_0,1);
1491
Init_operation(OPERATION_GRAD_CIRCLE,1,6,Grad_circle_12_6,0);
1492
Init_operation(OPERATION_GRAD_CIRCLE,2,6,Grad_circle_12_6,0);
1493
Init_operation(OPERATION_GRAD_CIRCLE,0,6,Grad_circle_0_6,1);
1494
Init_operation(OPERATION_GRAD_CIRCLE,1,8,Grad_circle_12_8,0);
1495
Init_operation(OPERATION_GRAD_CIRCLE,2,8,Grad_circle_12_8,0);
1496
Init_operation(OPERATION_GRAD_CIRCLE,0,8,Grad_circle_or_ellipse_0_8,0);
1498
Init_operation(OPERATION_GRAD_ELLIPSE,1,0,Grad_ellipse_12_0,1);
1499
Init_operation(OPERATION_GRAD_ELLIPSE,2,0,Grad_ellipse_12_0,1);
1500
Init_operation(OPERATION_GRAD_ELLIPSE,1,6,Grad_ellipse_12_6,0);
1501
Init_operation(OPERATION_GRAD_ELLIPSE,2,6,Grad_ellipse_12_6,0);
1502
Init_operation(OPERATION_GRAD_ELLIPSE,0,6,Grad_ellipse_0_6,1);
1503
Init_operation(OPERATION_GRAD_ELLIPSE,1,8,Grad_ellipse_12_8,0);
1504
Init_operation(OPERATION_GRAD_ELLIPSE,2,8,Grad_ellipse_12_8,0);
1505
Init_operation(OPERATION_GRAD_ELLIPSE,0,8,Grad_circle_or_ellipse_0_8,0);
1507
Init_operation(OPERATION_GRAD_RECTANGLE,1,0,Grad_rectangle_12_0,0);
1508
Init_operation(OPERATION_GRAD_RECTANGLE,1,5,Grad_rectangle_12_5,0);
1509
Init_operation(OPERATION_GRAD_RECTANGLE,0,5,Grad_rectangle_0_5,1);
1510
Init_operation(OPERATION_GRAD_RECTANGLE,0,7,Grad_rectangle_0_7,0);
1511
Init_operation(OPERATION_GRAD_RECTANGLE,1,7,Grad_rectangle_12_7,1);
1512
Init_operation(OPERATION_GRAD_RECTANGLE,2,7,Grad_rectangle_12_7,1);
1513
Init_operation(OPERATION_GRAD_RECTANGLE,1,9,Grad_rectangle_12_9,1);
1514
Init_operation(OPERATION_GRAD_RECTANGLE,0,9,Grad_rectangle_0_9,0);
1593
Scroll_0_4,HIDE_CURSOR,FAST_MOUSE);
1595
Init_operation(OPERATION_GRAD_CIRCLE,1,0,Grad_circle_12_0,HIDE_CURSOR,FAST_MOUSE);
1596
Init_operation(OPERATION_GRAD_CIRCLE,2,0,Grad_circle_12_0,HIDE_CURSOR,FAST_MOUSE);
1597
Init_operation(OPERATION_GRAD_CIRCLE,1,6,Grad_circle_12_6,0,FAST_MOUSE);
1598
Init_operation(OPERATION_GRAD_CIRCLE,2,6,Grad_circle_12_6,0,FAST_MOUSE);
1599
Init_operation(OPERATION_GRAD_CIRCLE,0,6,Grad_circle_0_6,HIDE_CURSOR,FAST_MOUSE);
1600
Init_operation(OPERATION_GRAD_CIRCLE,1,8,Grad_circle_12_8,0,FAST_MOUSE);
1601
Init_operation(OPERATION_GRAD_CIRCLE,2,8,Grad_circle_12_8,0,FAST_MOUSE);
1602
Init_operation(OPERATION_GRAD_CIRCLE,0,8,Grad_circle_or_ellipse_0_8,0,FAST_MOUSE);
1604
Init_operation(OPERATION_GRAD_ELLIPSE,1,0,Grad_ellipse_12_0,HIDE_CURSOR,FAST_MOUSE);
1605
Init_operation(OPERATION_GRAD_ELLIPSE,2,0,Grad_ellipse_12_0,HIDE_CURSOR,FAST_MOUSE);
1606
Init_operation(OPERATION_GRAD_ELLIPSE,1,6,Grad_ellipse_12_6,0,FAST_MOUSE);
1607
Init_operation(OPERATION_GRAD_ELLIPSE,2,6,Grad_ellipse_12_6,0,FAST_MOUSE);
1608
Init_operation(OPERATION_GRAD_ELLIPSE,0,6,Grad_ellipse_0_6,HIDE_CURSOR,FAST_MOUSE);
1609
Init_operation(OPERATION_GRAD_ELLIPSE,1,8,Grad_ellipse_12_8,0,FAST_MOUSE);
1610
Init_operation(OPERATION_GRAD_ELLIPSE,2,8,Grad_ellipse_12_8,0,FAST_MOUSE);
1611
Init_operation(OPERATION_GRAD_ELLIPSE,0,8,Grad_circle_or_ellipse_0_8,0,FAST_MOUSE);
1613
Init_operation(OPERATION_GRAD_RECTANGLE,1,0,Grad_rectangle_12_0,0,FAST_MOUSE);
1614
Init_operation(OPERATION_GRAD_RECTANGLE,1,5,Grad_rectangle_12_5,0,FAST_MOUSE);
1615
Init_operation(OPERATION_GRAD_RECTANGLE,0,5,Grad_rectangle_0_5,HIDE_CURSOR,FAST_MOUSE);
1616
Init_operation(OPERATION_GRAD_RECTANGLE,0,7,Grad_rectangle_0_7,0,FAST_MOUSE);
1617
Init_operation(OPERATION_GRAD_RECTANGLE,1,7,Grad_rectangle_12_7,HIDE_CURSOR,FAST_MOUSE);
1618
Init_operation(OPERATION_GRAD_RECTANGLE,2,7,Grad_rectangle_12_7,HIDE_CURSOR,FAST_MOUSE);
1619
Init_operation(OPERATION_GRAD_RECTANGLE,1,9,Grad_rectangle_12_9,HIDE_CURSOR,FAST_MOUSE);
1620
Init_operation(OPERATION_GRAD_RECTANGLE,0,9,Grad_rectangle_0_9,0,FAST_MOUSE);
1517
1623
Init_operation(OPERATION_CENTERED_LINES,1,0,
1518
Centered_lines_12_0,1);
1624
Centered_lines_12_0,HIDE_CURSOR,FAST_MOUSE);
1519
1625
Init_operation(OPERATION_CENTERED_LINES,2,0,
1520
Centered_lines_12_0,1);
1626
Centered_lines_12_0,HIDE_CURSOR,FAST_MOUSE);
1521
1627
Init_operation(OPERATION_CENTERED_LINES,1,3,
1522
Centered_lines_12_3,0);
1628
Centered_lines_12_3,0,FAST_MOUSE);
1523
1629
Init_operation(OPERATION_CENTERED_LINES,2,3,
1524
Centered_lines_12_3,0);
1630
Centered_lines_12_3,0,FAST_MOUSE);
1525
1631
Init_operation(OPERATION_CENTERED_LINES,0,3,
1526
Centered_lines_0_3,1);
1632
Centered_lines_0_3,HIDE_CURSOR,FAST_MOUSE);
1527
1633
Init_operation(OPERATION_CENTERED_LINES,1,7,
1528
Centered_lines_12_7,0);
1634
Centered_lines_12_7,0,FAST_MOUSE);
1529
1635
Init_operation(OPERATION_CENTERED_LINES,2,7,
1530
Centered_lines_12_7,0);
1636
Centered_lines_12_7,0,FAST_MOUSE);
1531
1637
Init_operation(OPERATION_CENTERED_LINES,0,7,
1532
Centered_lines_0_7,0);
1638
Centered_lines_0_7,0,FAST_MOUSE);