diff --git a/doc/original_docs/doc_eng.txt b/doc/original_docs/doc_eng.txt index 03e98e2a..7b66e16d 100644 --- a/doc/original_docs/doc_eng.txt +++ b/doc/original_docs/doc_eng.txt @@ -296,13 +296,13 @@ Available options: There are 3 hand-drawing modes: - Continuous hand-drawing: as you move the mouse, the paintbrush is - regularily pasted on the picture. This drawing tool allows to change - the fore and back colors when being in use. + regularly pasted on the picture. This drawing tool allows you to + change the fore and back colors when in use. - Discontinuous hand-drawing: as you move the mouse, the paintbrush is pasted on the picture every time a delay is passed (actually, the - delay is 1 VBL (vertical blanking)). This drawing tool allows to - change the fore and back colors when being in use. + delay is 1 VBL (vertical blanking)). This drawing tool allows you to + change the fore and back colors when in use. - Dot by dot hand-drawing: the paintbrush is only pasted at the position where you first clicked. @@ -369,8 +369,8 @@ Available options: position of the mouse when you release the mouse button. Then you can draw lines from the center to the current mouse position by clicking. To stop drawing concentric lines, use the opposite mouse - button. This drawing tool allows to change the fore and back colors - when being in use. + button. This drawing tool allows you to change the fore and back + colors when in use. Right click: @@ -388,7 +388,7 @@ Available options: ============> Selects the spray as the active drawing tool. This drawing tool allows - to change the fore and back colors when being in use. + you to change the fore and back colors when in use. Right click: @@ -418,8 +418,8 @@ Available options: Actually, this puts a 0 value in the use of each color. - Init: Allows you to define a value that will be set to the color you - click on in the palette if its value is equal to 0. This permits to - tag a set of colors more quickly. + click on in the palette if its value is equal to 0. This permits you + to tag a set of colors more quickly. - +1,-1,x2,÷2: Modify the values of all the tagged colors (and only them). @@ -456,7 +456,7 @@ Available options: Any rule has its exceptions and this one doesn't depart from that. Indeed, this tool is the only one to be affected by no effect (except Stencil) and to be able to modify non visible parts of the picture. - The function of this tool being replacing all the occurences of a + The function of this tool being replacing all the occurrences of a color in the picture by another, if would have been a shame to limit modifications only to the visible part of the picture. @@ -704,8 +704,8 @@ Available options: - Distort: *** Not implemented yet *** - Outline: - This option permits to draw the outlines of the brush with the Fore- - color. + This option permits you to draw the outlines of the brush with the + Fore color. - Nibble: This option "nibbles" the outlines of the brush. It's in some way @@ -777,12 +777,12 @@ Available options: sufficient to define the different shades since every 256 colors of the palette cannot be present more than once in each table. - - A window (on the top-right side) permits to visualize the different - shades defined in he current table. + - A window (on the top-right side) permits you to visualize the + different shades defined in he current table. - Copy: Copy the contents of the table in a buffer. (Each time you open this menu, the current table is automatically - transfered into this buffer). + transferred into this buffer). - Paste: Copy the contents of the buffer above in the current table. @@ -794,7 +794,7 @@ Available options: IF a block of more than one color is selected in the table THEN It is deleted and the block defined in the palette is inserted. ELSE - The block defined in the palette is inserted at the postion just + The block defined in the palette is inserted at the position just before the selected square. END IF ELSE @@ -1019,8 +1019,8 @@ Available options: * Transparency mode (Colorize) / Menu: -------------------------------------- - This allows to mix the color(s) of the paintbrush with the colors of the - picture. It's used to make transparency effects like with watercolors. + This allows you to mix the color(s) of the paintbrush with the colors of + the picture. It's used to make transparency effects like with watercolors. Left click: ============> @@ -1219,7 +1219,7 @@ Available options: Right click: ============> - Automaticaly switches to the 320x200 MCGA mode. + Automatically switches to the 320x200 MCGA mode. @@ -1749,7 +1749,7 @@ Drawing tips: reflexes). Then you'll just have to click a few hundredth of second for modifying a color. - â–  With a wider diameter, it permits to add granularity to a texture, + â–  With a wider diameter, it permits you to add granularity to a texture, because placing lighter or darker pixels creates some ruggedness. Different textures appropriated to this effect are: sand, rock, etc... Of course, you'll need a color gradation corresponding to color of the diff --git a/misc/unix/grafx2.1 b/misc/unix/grafx2.1 index 81982608..480db2b0 100644 --- a/misc/unix/grafx2.1 +++ b/misc/unix/grafx2.1 @@ -59,7 +59,7 @@ Use an alternate file for the menu graphics. To set a video mode listed with the -help parameter. .SH FILES User settings are stored in ~/.grafx2/gfx2.ini. This file is really meant to -be edited by the user and allows to tweak many aspects of the program. +be edited by the user and allows you to tweak many aspects of the program. .SH ENVIRONMENT Since grafx2 uses the SDL library for graphics and user input you can use control some of that parts using the SDL environment variables diff --git a/share/grafx2/gfx2def.ini b/share/grafx2/gfx2def.ini index 54531c2d..0a5ec83a 100644 --- a/share/grafx2/gfx2def.ini +++ b/share/grafx2/gfx2def.ini @@ -249,7 +249,7 @@ ; must set this option to 'no'. | devez mettre cette option à 'no'. Save_screen_size_in_GIF = no ; (default 'no') - ; Automaticaly count the number of | Compter automatiquement le nombre de + ; Automatically count the number of | Compter automatiquement le nombre de ; different colors used when opening| couleurs différentes utilisées lors de ; the palette editor window. (Set it| d'ouverture de la fenêtre d'édition de ; to 'no' if you have a slow PC or | la palette. (Mettez-le à 'no' si vous diff --git a/share/grafx2/scripts/samples/libs/dawnbringer_lib.lua b/share/grafx2/scripts/samples/libs/dawnbringer_lib.lua index 21257d84..b0d607b0 100644 --- a/share/grafx2/scripts/samples/libs/dawnbringer_lib.lua +++ b/share/grafx2/scripts/samples/libs/dawnbringer_lib.lua @@ -1391,7 +1391,7 @@ function db.fixPalette(pal,sortflag) -- Arrange palette & only keep unique color newpal[n] = indexpal[ulist[n][1]] end - newpal["assigns"] = assign -- Complete list of image color assigns (removed cols will point to 1st occurence) + newpal["assigns"] = assign -- Complete list of image color assigns (removed cols will point to 1st occurrence) newpal["doubles"] = doubles newpal.double_total = dtot diff --git a/src/SFont.c b/src/SFont.c index 6b0de8c9..e2304b3b 100644 --- a/src/SFont.c +++ b/src/SFont.c @@ -159,7 +159,7 @@ int SFont_TextWidth(const SFont_Font *Font, const char *text) int SFont_TextHeight(const SFont_Font* Font, const char *text) { - // Count occurences of '\n' + // Count occurrences of '\n' int nb_cr=0; while (*text!='\0') { diff --git a/src/buttons.c b/src/buttons.c index 36e3d4f2..bc06ed25 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -2198,7 +2198,7 @@ void Button_Resolution(int btn) Video_mode[selected_mode].Fullscreen, chosen_pixel)) { - Error(0); // On signale à l'utilisateur que c'est un mode invalide + Error(0); // Tell user it is an invalid mode Pixel_ratio=PIXEL_SIMPLE; Init_mode_video( Video_mode[Current_resolution].Width, diff --git a/src/fileformats.c b/src/fileformats.c index 9029abbe..5bef8a5c 100644 --- a/src/fileformats.c +++ b/src/fileformats.c @@ -1834,7 +1834,7 @@ void Load_IFF(T_IO_Context * context) bpp = 12; } else - Warning("inconsistant size of BEAM/CTLB chunk, ignoring"); + Warning("inconsistent size of BEAM/CTLB chunk, ignoring"); fseek(IFF_file, (section_size+1)&~1, SEEK_CUR); } else if (memcmp(section, "PCHG", 4) == 0) // Palette CHanGes @@ -4752,7 +4752,7 @@ void Load_GIF(T_IO_Context * context) special_case = GIF_get_next_code(GIF_file, &GIF); if (GIF.current_code >= value_clr) { - GFX2_Log(GFX2_INFO, "Load_GIF() Invalide code %u just after clear (=%u)!\n", + GFX2_Log(GFX2_INFO, "Load_GIF() Invalid code %u just after clear (=%u)!\n", GIF.current_code, value_clr); File_error = 2; break; diff --git a/src/helpfile.h b/src/helpfile.h index 9aa6afd8..a805ac2a 100644 --- a/src/helpfile.h +++ b/src/helpfile.h @@ -284,7 +284,7 @@ static const T_Help_table helptable_help[] = HELP_LINK (" Back faster: %s", 0x200+BUTTON_PAL_LEFT) HELP_LINK (" Forward faster: %s", 0x200+BUTTON_PAL_RIGHT) HELP_TEXT ("") - HELP_TEXT ("Change brush attachement") + HELP_TEXT ("Change brush attachment") HELP_LINK (" Center : %s", SPECIAL_CENTER_ATTACHMENT) HELP_LINK (" Top-left : %s", SPECIAL_TOP_LEFT_ATTACHMENT) HELP_LINK (" Top-right : %s", SPECIAL_TOP_RIGHT_ATTACHMENT) @@ -830,9 +830,9 @@ static const T_Help_table helptable_draw[] = HELP_TEXT ("hand-drawing modes:") HELP_TEXT ("") HELP_TEXT ("Continuous hand-drawing: as you move the") - HELP_TEXT ("mouse, the paintbrush is regularily pasted") - HELP_TEXT ("on the picture. This drawing tool allows to") - HELP_TEXT ("change the fore and back colors when being") + HELP_TEXT ("mouse, the paintbrush is regularly pasted") + HELP_TEXT ("on the picture. This drawing tool allows you") + HELP_TEXT ("to change the fore and back colors when") HELP_TEXT ("in use.") HELP_TEXT ("") HELP_TEXT ("Discontinuous hand-drawing: as you move the") @@ -840,8 +840,8 @@ static const T_Help_table helptable_draw[] = HELP_TEXT ("picture every time a delay is passed") HELP_TEXT ("(actually, the delay is 1 VBL") HELP_TEXT ("(vertical blanking)). This drawing tool") - HELP_TEXT ("allows to change the fore and back colors") - HELP_TEXT ("when being in use.") + HELP_TEXT ("allows you to change the fore and back") + HELP_TEXT ("colors when in use.") HELP_TEXT ("") HELP_TEXT ("Dot by dot hand-drawing: the paintbrush is") HELP_TEXT ("only pasted at the position where you first") @@ -930,8 +930,8 @@ static const T_Help_table helptable_lines[] = HELP_TEXT ("from the center to the current mouse") HELP_TEXT ("position by clicking. To stop drawing") HELP_TEXT ("concentric lines, use the opposite mouse") - HELP_TEXT ("button. This drawing tool allows to change") - HELP_TEXT ("the fore and back colors when being in use.") + HELP_TEXT ("button. This drawing tool allows you to") + HELP_TEXT ("change the fore and back colors when in use.") HELP_TEXT ("") HELP_BOLD ("RIGHT CLICK") HELP_LINK ("(Key:%s)",0x200+BUTTON_LINES) @@ -949,8 +949,8 @@ static const T_Help_table helptable_airbrush[] = HELP_LINK ("(Key:%s)",0x100+BUTTON_AIRBRUSH) HELP_TEXT ("") HELP_TEXT ("Selects the spray as the active drawing") - HELP_TEXT ("tool. This drawing tool allows to change the") - HELP_TEXT ("fore and back colors when being in use.") + HELP_TEXT ("tool. This drawing tool allows you to change") + HELP_TEXT ("the fore and back colors when in use.") HELP_TEXT ("") HELP_BOLD ("RIGHT CLICK") HELP_LINK ("(Key:%s)",0x200+BUTTON_AIRBRUSH) @@ -988,7 +988,7 @@ static const T_Help_table helptable_airbrush[] = HELP_TEXT ("- Init: Allows you to define a value that") HELP_TEXT ("will be set to the color you click on in the") HELP_TEXT ("palette if its value is equal to 0. This") - HELP_TEXT ("permits to tag a set of colors more quickly.") + HELP_TEXT ("permits you to tag a set of colors quickly.") HELP_TEXT ("") HELP_TEXT ("- +1,-1,x2,/2: Modify the values of all the") HELP_TEXT ("tagged colors (and only them).") @@ -1032,9 +1032,9 @@ static const T_Help_table helptable_floodfill[] = HELP_TEXT ("is the only one to be affected by no effect") HELP_TEXT ("(except Stencil) and to be able to modify") HELP_TEXT ("non visible parts of the picture.") - HELP_TEXT ("The function of this tool being replacing") - HELP_TEXT ("all the occurences of a color in the picture") - HELP_TEXT ("by another, if would have been a shame to") + HELP_TEXT ("The purpose of this tool being to replace") + HELP_TEXT ("all occurrences of a color in the picture") + HELP_TEXT ("by another, it would have been a shame to") HELP_TEXT ("limit modifications only to the visible part") HELP_TEXT ("of the picture.") }; @@ -1371,7 +1371,7 @@ static const T_Help_table helptable_brush_fx[] = HELP_TEXT ("button.") HELP_TEXT ("") HELP_LINK ("- Outline: (Key:%s)",SPECIAL_OUTLINE) - HELP_TEXT ("This option permits to draw the") + HELP_TEXT ("This option permits you to draw the") HELP_TEXT ("outlines of the brush with the Fore- color.") HELP_TEXT ("") HELP_LINK ("- Nibble: (Key:%s)",SPECIAL_NIBBLE) @@ -1497,14 +1497,14 @@ static const T_Help_table helptable_effects[] = HELP_TEXT ("in each table.") HELP_TEXT ("") HELP_TEXT ("- A window (on the top-right side) permits") - HELP_TEXT ("to visualize the different") - HELP_TEXT ("shades defined in he current table.") + HELP_TEXT ("you to visualize the different") + HELP_TEXT ("shades defined in the current table.") HELP_TEXT ("") HELP_TEXT ("- Copy: Copy the contents of the table in a") HELP_TEXT ("buffer.") HELP_TEXT ("(Each time you open this menu, the current") HELP_TEXT ("table is automatically") - HELP_TEXT ("transfered into this buffer).") + HELP_TEXT ("transferred into this buffer).") HELP_TEXT ("") HELP_TEXT ("- Paste: Copy the contents of the buffer") HELP_TEXT ("above in the current table.") @@ -1519,7 +1519,7 @@ static const T_Help_table helptable_effects[] = HELP_TEXT ("color is selected in the table THEN It is") HELP_TEXT ("deleted and the block defined in the palette") HELP_TEXT ("is inserted. ELSE The block defined in the") - HELP_TEXT ("palette is inserted at the postion just") + HELP_TEXT ("palette is inserted at the position just") HELP_TEXT ("before the selected square. END IF") HELP_TEXT ("ELSE The block defined in the palette is") HELP_TEXT ("inserted by erasing the colors following the") @@ -1778,8 +1778,8 @@ static const T_Help_table helptable_effects[] = HELP_TEXT ("") HELP_TEXT ("") HELP_TITLE("TRANSPARENCY") - HELP_TEXT (" This allows to mix the color(s) of the") - HELP_TEXT ("paintbrush with the colors of the picture.") + HELP_TEXT (" This allows you to mix the color(s) of the") + HELP_TEXT ("paintbrush with the colors of the picture.") HELP_TEXT ("It's used to make transparency effects like") HELP_TEXT ("with watercolors.") HELP_TEXT ("") @@ -1929,7 +1929,7 @@ static const T_Help_table helptable_effects[] = HELP_BOLD ("LEFT CLICK") HELP_TEXT ("Open the menu if no constraint type has been") HELP_TEXT ("already selected.") - HELP_TEXT ("Else enable/disable the contraints") + HELP_TEXT ("Else enable/disable the constraints") HELP_TEXT ("") HELP_BOLD ("RIGHT CLICK") HELP_TEXT ("Open the menu to choose the type of") @@ -2652,7 +2652,7 @@ static const T_Help_table helptable_settings_details[] = HELP_TEXT ("drawing mode after brush grabbing.") HELP_TEXT ("") HELP_BOLD (" Auto nb colors used") - HELP_TEXT ("Automaticaly count the number of different") + HELP_TEXT ("Automatically count the number of different") HELP_TEXT ("colors used when opening the palette editor") HELP_TEXT ("window. (Set it to 'no' if you have a slow") HELP_TEXT ("computer or if you edit huge pictures)") diff --git a/src/hotkeys.c b/src/hotkeys.c index fadb9d26..c7462565 100644 --- a/src/hotkeys.c +++ b/src/hotkeys.c @@ -706,7 +706,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = { KEY_z|MOD_SHIFT, // Shift + Z 0}, {74, - "Strech brush", + "Stretch brush", "Allows you to resize the", "user-defined brush.", "", @@ -1094,7 +1094,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = { 0}, {112, "Center brush attachment point", - "Set the attachement of the", + "Set the attachment of the", "user-defined brush to its center.", "", true, @@ -1102,7 +1102,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = { 0}, {113, "Top-left brush attachment point", - "Set the attachement of the", + "Set the attachment of the", "user-defined brush to its top-left", "corner.", true, @@ -1110,7 +1110,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = { 0}, {114, "Top-right brush attachment point", - "Set the attachement of the", + "Set the attachment of the", "user-defined brush to its top-right", "corner.", true, @@ -1118,7 +1118,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = { 0}, {115, "Bottom-left brush attachment point", - "Set the attachement of the", + "Set the attachment of the", "user-defined brush to its", "bottom-left corner.", true, @@ -1126,7 +1126,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = { 0}, {116, "Bottom-right brush attachment point", - "Set the attachement of the", + "Set the attachment of the", "user-defined brush to its", "bottom-right corner.", true, @@ -1965,11 +1965,11 @@ word Ordering[NB_SHORTCUTS]= 0x100+BUTTON_PAL_RIGHT, // Scroll palette right 0x200+BUTTON_PAL_LEFT, // Scroll palette left faster 0x200+BUTTON_PAL_RIGHT, // Scroll palette right faster - SPECIAL_CENTER_ATTACHMENT, // Center brush attachement - SPECIAL_TOP_LEFT_ATTACHMENT, // Top-left brush attachement - SPECIAL_TOP_RIGHT_ATTACHMENT, // Top-right brush attachement - SPECIAL_BOTTOM_LEFT_ATTACHMENT, // Bottom-left brush attachement - SPECIAL_BOTTOM_RIGHT_ATTACHMENT, // Bottom right brush attachement + SPECIAL_CENTER_ATTACHMENT, // Center brush attachment + SPECIAL_TOP_LEFT_ATTACHMENT, // Top-left brush attachment + SPECIAL_TOP_RIGHT_ATTACHMENT, // Top-right brush attachment + SPECIAL_BOTTOM_LEFT_ATTACHMENT, // Bottom-left brush attachment + SPECIAL_BOTTOM_RIGHT_ATTACHMENT, // Bottom right brush attachment SPECIAL_NEXT_FORECOLOR, // Next foreground color SPECIAL_PREVIOUS_FORECOLOR, // Previous foreground color SPECIAL_NEXT_BACKCOLOR, // Next background color diff --git a/src/main.c b/src/main.c index e8471824..143a3bf4 100644 --- a/src/main.c +++ b/src/main.c @@ -212,7 +212,7 @@ void Error_function(int error_code, const char *filename, int line_number, const int index; char msg_buffer[512]; - snprintf(msg_buffer, sizeof(msg_buffer), "Error number %d occured in file %s, line %d, function %s.\n", error_code, filename,line_number,function_name); + snprintf(msg_buffer, sizeof(msg_buffer), "Error number %d occurred in file %s, line %d, function %s.\n", error_code, filename,line_number,function_name); fputs(msg_buffer, stderr); #if defined(_MSC_VER) && defined(_DEBUG) OutputDebugStringA(msg_buffer); diff --git a/src/op_c.c b/src/op_c.c index 1ba2f750..5ef66789 100644 --- a/src/op_c.c +++ b/src/op_c.c @@ -192,12 +192,12 @@ long Perceptual_lightness(T_Components *color) 19*color->B*19*color->B; } -// Handlers for the occurences tables -// This table is used to count the occurence of an (RGB) pixel value in the +// Handlers for the occurrences tables +// This table is used to count the occurrence of an (RGB) pixel value in the // source 24bit image. These count are then used by the median cut algorithm to // decide which cluster to split. -/// Initialize an occurence table +/// Initialize an occurrence table void OT_init(T_Occurrence_table * t) { int size; @@ -206,7 +206,7 @@ void OT_init(T_Occurrence_table * t) memset(t->table,0,size); // Set it to 0 } -/// Allocate an occurence table for given number of bits +/// Allocate an occurrence table for given number of bits T_Occurrence_table * OT_new(int nbb_r,int nbb_g,int nbb_b) { T_Occurrence_table * n; @@ -255,7 +255,7 @@ void OT_delete(T_Occurrence_table * t) } -/// Get number of occurences for a given color +/// Get number of occurrences for a given color int OT_get(T_Occurrence_table * t, byte r, byte g, byte b) { int index; @@ -293,7 +293,7 @@ void OT_count_occurrences(T_Occurrence_table* t, T_Bitmap24B image, int size) } -/// Count the total number of pixels in an occurence table +/// Count the total number of pixels in an occurrence table int OT_count_colors(T_Occurrence_table * t) { int val; // Computed return value @@ -341,7 +341,7 @@ void Cluster_pack(T_Cluster * c,const T_Occurrence_table * const to) // Unoptimized code kept here for documentation purpose because the optimized // one is unreadable : run over the whole cluster and find the min and max, - // and count the occurences at the same time. + // and count the occurrences at the same time. /* for (r=c->rmin<dec_r;r<=c->rmax<dec_r;r+=1<dec_r) for (g=c->vmin<dec_g;g<=c->vmax<dec_g;g+=1<dec_g) @@ -356,7 +356,7 @@ void Cluster_pack(T_Cluster * c,const T_Occurrence_table * const to) else if (g>vmax) vmax=g; if (bbmax) bmax=b; - c->occurences+=nbocc; + c->occurrences+=nbocc; } } */ @@ -866,7 +866,7 @@ int CS_Set(T_Cluster_set * cs,T_Cluster * c) /// This is the main median cut algorithm and the function actually called to /// reduce the palette. We get the number of pixels for each collor in the -/// occurence table and generate the cluster set from it. +/// occurrence table and generate the cluster set from it. // 1) RGB space is a big box // 2) We seek the pixels with extreme values // 3) We split the box in 2 parts on its longest axis @@ -918,7 +918,7 @@ int CS_Generate(T_Cluster_set * cs, const T_Occurrence_table * const to, CT_Tree if(CS_Set(cs,&Nouveau1) < 0) return -1; } - + if (Nouveau2.occurences != 0) { if(CS_Set(cs,&Nouveau2) < 0) return -1; diff --git a/src/tiles.c b/src/tiles.c index 08b1faf9..a4c851e7 100644 --- a/src/tiles.c +++ b/src/tiles.c @@ -249,7 +249,7 @@ void Tilemap_update(void) } if (ref_tile