diff --git a/NEWS b/NEWS index d76230a801..a79ca6aa84 100644 --- a/NEWS +++ b/NEWS @@ -4527,7 +4527,7 @@ Fixes: * ecore-drm: Send proper keycode to ecore key event, and remove erroneous variable. * edje/Edje_Edit: _edje_edit_real_part_add init field of Edje_Real_part * fix ecore_con_url using 100% cpu and just let fd handler do work (T1251) - * fix behavior of edje entry to match other toolkit entires (T1229) + * fix behavior of edje entry to match other toolkit entries (T1229) * fix ecore_thread_global_data_wait to work when no data exists yet * Eo: Fix deref after free. (CID1039898) * evas/render - fix segfault because of null cow access. (T1252) diff --git a/cmakeconfig/EolianHelper.cmake.in b/cmakeconfig/EolianHelper.cmake.in index e79d3c8325..b1ca845bd1 100644 --- a/cmakeconfig/EolianHelper.cmake.in +++ b/cmakeconfig/EolianHelper.cmake.in @@ -47,14 +47,14 @@ function(eo_rule_create build_files relative_include_dirs) ${EOLIAN_EO_DIR_WITHOUT_NEWLINE} ) - # convert relative to absolut + # convert relative to absolute foreach(relative_include_dir ${relative_include_dirs}) list(APPEND include_dirs ${CMAKE_CURRENT_SOURCE_DIR}/${relative_include_dir} ) endforeach() - # work with the absolut paths + # work with the absolute paths foreach(include_cmd ${include_dirs}) # build include cmd string(CONCAT includes "${includes}" " -I${include_cmd}") diff --git a/doc/elementary_examples.dox b/doc/elementary_examples.dox index 76aa37e953..b705b1ac26 100644 --- a/doc/elementary_examples.dox +++ b/doc/elementary_examples.dox @@ -2750,7 +2750,7 @@ * * The both states and the item are using the same callback function, * that will cycle between states and unselect the item. Unseleting - * is required because it won't call the callback if an user clicks + * is required because it won't call the callback if a user clicks * over an item already selected: * @dontinclude toolbar_example_02.c * @skip static diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h index 28ed81bd00..f293fe10a6 100644 --- a/src/lib/ecore_imf/Ecore_IMF.h +++ b/src/lib/ecore_imf/Ecore_IMF.h @@ -1971,7 +1971,7 @@ EAPI void ecore_imf_context_candidate_panel_geometry_ge /** * @ingroup Ecore_IMF_Context_Group - * @brief Sets whether the Input Method Context should request to show the input panel in case of only an user's explicit Mouse Up event. + * @brief Sets whether the Input Method Context should request to show the input panel in case of only a user's explicit Mouse Up event. * It doesn't request to show the input panel even though the Input Method Context has focus. * * @param ctx An #Ecore_IMF_Context. @@ -1982,7 +1982,7 @@ EAPI void ecore_imf_context_input_panel_show_on_demand_ /** * @ingroup Ecore_IMF_Context_Group - * @brief Gets whether the Input Method Context should request to show the input panel in case of only an user's explicit Mouse Up event. + * @brief Gets whether the Input Method Context should request to show the input panel in case of only a user's explicit Mouse Up event. * * @param ctx An #Ecore_IMF_Context. * @return @c EINA_TRUE if the input panel will be shown in case of only Mouse up event. diff --git a/src/lib/edje/Edje_Legacy.h b/src/lib/edje/Edje_Legacy.h index 24ef3f8b7f..f8c49fd044 100644 --- a/src/lib/edje/Edje_Legacy.h +++ b/src/lib/edje/Edje_Legacy.h @@ -2697,7 +2697,7 @@ EAPI void edje_object_part_text_input_panel_return_key_type_set(Evas_Object *obj EAPI Edje_Input_Panel_Return_Key_Type edje_object_part_text_input_panel_return_key_type_get(const Evas_Object *obj, const char *part); /** - * @brief Sets the attribute to show the input panel in case of only an user's + * @brief Sets the attribute to show the input panel in case of only a user's * explicit Mouse Up event. It doesn't request to show the input panel even * though it has focus. * @@ -2712,7 +2712,7 @@ EAPI Edje_Input_Panel_Return_Key_Type edje_object_part_text_input_panel_return_k EAPI void edje_object_part_text_input_panel_show_on_demand_set(Evas_Object *obj, const char *part, Eina_Bool ondemand); /** - * @brief Gets the attribute to show the input panel in case of only an user's + * @brief Gets the attribute to show the input panel in case of only a user's * explicit Mouse Up event. * * @param[in] part The part name diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c index c057a5c667..e1216e6108 100644 --- a/src/lib/eet/eet_lib.c +++ b/src/lib/eet/eet_lib.c @@ -1069,7 +1069,7 @@ eet_internal_read1(Eet_File *ef) (byte_entries > 0x7fffffff), ef)) return NULL; - /* we can't have more entires than minimum bytes for those! invalid! */ + /* we can't have more entries than minimum bytes for those! invalid! */ if (eet_test_close((num_entries * 20) > byte_entries, ef)) return NULL; diff --git a/src/lib/elementary/efl_ui_exact_model.c b/src/lib/elementary/efl_ui_exact_model.c index fc1b5997c7..9c33709123 100644 --- a/src/lib/elementary/efl_ui_exact_model.c +++ b/src/lib/elementary/efl_ui_exact_model.c @@ -204,7 +204,7 @@ _efl_ui_exact_model_slot_find(Efl_Ui_Exact_Model_Data *pd, unsigned int index, pd->parent->slot[found].start_offset = index / EFL_UI_EXACT_MODEL_CONTENT; } - // Increase usage of the returnd slot for now + // Increase usage of the returned slot for now pd->parent->slot[found].usage++; // Unpack the data if requested diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c index 34069a3ad6..9906afb2dc 100644 --- a/src/lib/elementary/efl_ui_internal_text_interactive.c +++ b/src/lib/elementary/efl_ui_internal_text_interactive.c @@ -1139,7 +1139,7 @@ _key_down_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void Efl_Ui_Internal_Text_Interactive_Data *en = efl_data_scope_get(obj, MY_CLASS); - /* FIXME: Maybe allow selctions to happen even when not editable. */ + /* FIXME: Maybe allow selections to happen even when not editable. */ if (!en->editable) return; #ifdef HAVE_ECORE_IMF diff --git a/src/lib/elementary/elc_multibuttonentry.h b/src/lib/elementary/elc_multibuttonentry.h index aad3b51880..491433b924 100644 --- a/src/lib/elementary/elc_multibuttonentry.h +++ b/src/lib/elementary/elc_multibuttonentry.h @@ -5,7 +5,7 @@ * @image html multibuttonentry_inheritance_tree.png * @image latex multibuttonentry_inheritance_tree.eps * - * A multi-button entry is a widget letting an user enter text and + * A multi-button entry is a widget letting a user enter text and * each chunk of text managed as a set of buttons. Each text button is * inserted by pressing the "return" key. If there is no space in the * current row, a new button is added to the next row. When a text diff --git a/src/lib/elementary/elm_calendar_eo.h b/src/lib/elementary/elm_calendar_eo.h index 09a97eb868..53cbc96a82 100644 --- a/src/lib/elementary/elm_calendar_eo.h +++ b/src/lib/elementary/elm_calendar_eo.h @@ -189,7 +189,7 @@ EOAPI void elm_obj_calendar_selectable_set(Eo *obj, Elm_Calendar_Selectable sele EOAPI Elm_Calendar_Selectable elm_obj_calendar_selectable_get(const Eo *obj); /** - * @brief The interval on time updates for an user mouse button hold on + * @brief The interval on time updates for a user mouse button hold on * calendar widgets' month/year selection. * * This interval value is decreased while the user holds the mouse pointer @@ -213,7 +213,7 @@ EOAPI Elm_Calendar_Selectable elm_obj_calendar_selectable_get(const Eo *obj); EOAPI void elm_obj_calendar_interval_set(Eo *obj, double interval); /** - * @brief The interval on time updates for an user mouse button hold on + * @brief The interval on time updates for a user mouse button hold on * calendar widgets' month/year selection. * * This interval value is decreased while the user holds the mouse pointer diff --git a/src/lib/elementary/elm_calendar_eo.legacy.h b/src/lib/elementary/elm_calendar_eo.legacy.h index d014445642..e2f903cb66 100644 --- a/src/lib/elementary/elm_calendar_eo.legacy.h +++ b/src/lib/elementary/elm_calendar_eo.legacy.h @@ -176,7 +176,7 @@ EAPI void elm_calendar_selectable_set(Elm_Calendar *obj, Elm_Calendar_Selectable EAPI Elm_Calendar_Selectable elm_calendar_selectable_get(const Elm_Calendar *obj); /** - * @brief The interval on time updates for an user mouse button hold on + * @brief The interval on time updates for a user mouse button hold on * calendar widgets' month/year selection. * * This interval value is decreased while the user holds the mouse pointer @@ -200,7 +200,7 @@ EAPI Elm_Calendar_Selectable elm_calendar_selectable_get(const Elm_Calendar *obj EAPI void elm_calendar_interval_set(Elm_Calendar *obj, double interval); /** - * @brief The interval on time updates for an user mouse button hold on + * @brief The interval on time updates for a user mouse button hold on * calendar widgets' month/year selection. * * This interval value is decreased while the user holds the mouse pointer diff --git a/src/lib/elementary/elm_deprecated.h b/src/lib/elementary/elm_deprecated.h index a8dd8e2ed7..ebed20dcb6 100644 --- a/src/lib/elementary/elm_deprecated.h +++ b/src/lib/elementary/elm_deprecated.h @@ -309,7 +309,7 @@ EINA_DEPRECATED EAPI void elm_map_markers_list_show(Eina_List * * elm_map_marker_class_get_cb_set() should be used. * * This content is what will be inside the bubble that will be displayed - * when an user clicks over the marker. + * when a user clicks over the marker. * * This returns the actual Evas object used to be placed inside * the bubble. This may be @c NULL, as it may diff --git a/src/lib/elementary/elm_entry_eo.h b/src/lib/elementary/elm_entry_eo.h index f762563fa7..90ec95a423 100644 --- a/src/lib/elementary/elm_entry_eo.h +++ b/src/lib/elementary/elm_entry_eo.h @@ -48,7 +48,7 @@ EOAPI void elm_obj_entry_scrollable_set(Eo *obj, Eina_Bool scroll); EOAPI Eina_Bool elm_obj_entry_scrollable_get(const Eo *obj); /** - * @brief Set the attribute to show the input panel in case of only an user's + * @brief Set the attribute to show the input panel in case of only a user's * explicit Mouse Up event. It doesn't request to show the input panel even * though it has focus. * @@ -63,7 +63,7 @@ EOAPI Eina_Bool elm_obj_entry_scrollable_get(const Eo *obj); EOAPI void elm_obj_entry_input_panel_show_on_demand_set(Eo *obj, Eina_Bool ondemand); /** - * @brief Get the attribute to show the input panel in case of only an user's + * @brief Get the attribute to show the input panel in case of only a user's * explicit Mouse Up event. * * @param[in] obj The object. diff --git a/src/lib/elementary/elm_entry_eo.legacy.h b/src/lib/elementary/elm_entry_eo.legacy.h index 6fe06089be..a08522a328 100644 --- a/src/lib/elementary/elm_entry_eo.legacy.h +++ b/src/lib/elementary/elm_entry_eo.legacy.h @@ -41,7 +41,7 @@ EAPI void elm_entry_scrollable_set(Elm_Entry *obj, Eina_Bool scroll); EAPI Eina_Bool elm_entry_scrollable_get(const Elm_Entry *obj); /** - * @brief Set the attribute to show the input panel in case of only an user's + * @brief Set the attribute to show the input panel in case of only a user's * explicit Mouse Up event. It doesn't request to show the input panel even * though it has focus. * @@ -56,7 +56,7 @@ EAPI Eina_Bool elm_entry_scrollable_get(const Elm_Entry *obj); EAPI void elm_entry_input_panel_show_on_demand_set(Elm_Entry *obj, Eina_Bool ondemand); /** - * @brief Get the attribute to show the input panel in case of only an user's + * @brief Get the attribute to show the input panel in case of only a user's * explicit Mouse Up event. * * @param[in] obj The object. diff --git a/src/lib/elementary/elm_flipselector_eo.h b/src/lib/elementary/elm_flipselector_eo.h index 59b3c483e3..c41fa562d7 100644 --- a/src/lib/elementary/elm_flipselector_eo.h +++ b/src/lib/elementary/elm_flipselector_eo.h @@ -108,7 +108,7 @@ EOAPI Elm_Widget_Item *elm_obj_flipselector_selected_item_get(const Eo *obj); EOAPI void elm_obj_flipselector_first_interval_set(Eo *obj, double interval); /** - * @brief Get the interval on time updates for an user mouse button hold on a + * @brief Get the interval on time updates for a user mouse button hold on a * flip selector widget. * * See also @ref elm_obj_flipselector_first_interval_set for more details. diff --git a/src/lib/elementary/elm_flipselector_eo.legacy.h b/src/lib/elementary/elm_flipselector_eo.legacy.h index 707d7a3d5e..321a7447ed 100644 --- a/src/lib/elementary/elm_flipselector_eo.legacy.h +++ b/src/lib/elementary/elm_flipselector_eo.legacy.h @@ -101,7 +101,7 @@ EAPI Elm_Widget_Item *elm_flipselector_selected_item_get(const Elm_Flipselector EAPI void elm_flipselector_first_interval_set(Elm_Flipselector *obj, double interval); /** - * @brief Get the interval on time updates for an user mouse button hold on a + * @brief Get the interval on time updates for a user mouse button hold on a * flip selector widget. * * See also @ref elm_flipselector_first_interval_set for more details. diff --git a/src/lib/elementary/elm_map_common.h b/src/lib/elementary/elm_map_common.h index 625094a305..13166d366b 100644 --- a/src/lib/elementary/elm_map_common.h +++ b/src/lib/elementary/elm_map_common.h @@ -472,7 +472,7 @@ EAPI int elm_map_overlay_class_zoom_max_get(const Elm_Map_Over * is clicked, callback will be called and return a virtual group overlays. * * You can change the state (hidden, paused, etc.) or set the content - * or icon of the group overlays by chaning the state of the class overlay. + * or icon of the group overlays by changing the state of the class overlay. * Do not modifty the group overlay itself. * * @see elm_map_overlay_class_add() diff --git a/src/lib/elementary/elm_map_eo.h b/src/lib/elementary/elm_map_eo.h index d33e955cc4..2ea40b40a1 100644 --- a/src/lib/elementary/elm_map_eo.h +++ b/src/lib/elementary/elm_map_eo.h @@ -339,7 +339,7 @@ EOAPI Elm_Map_Overlay *elm_obj_map_overlay_circle_add(Eo *obj, double lon, doubl * have default style layouts at first. * * You can change the state (hidden, paused, etc.) or set the content or icon - * of the group overlays by chaning the state of the class overlay. Do not + * of the group overlays by changing the state of the class overlay. Do not * modify the group overlay itself. * * Also these changes have a influence on the overlays in the same class even diff --git a/src/lib/elementary/elm_map_eo.legacy.h b/src/lib/elementary/elm_map_eo.legacy.h index cd51009b02..e94405c7c9 100644 --- a/src/lib/elementary/elm_map_eo.legacy.h +++ b/src/lib/elementary/elm_map_eo.legacy.h @@ -332,7 +332,7 @@ EAPI Elm_Map_Overlay *elm_map_overlay_circle_add(Elm_Map *obj, double lon, doubl * have default style layouts at first. * * You can change the state (hidden, paused, etc.) or set the content or icon - * of the group overlays by chaning the state of the class overlay. Do not + * of the group overlays by changing the state of the class overlay. Do not * modify the group overlay itself. * * Also these changes have a influence on the overlays in the same class even diff --git a/src/lib/elementary/elm_prefs.h b/src/lib/elementary/elm_prefs.h index 37f76e57d6..ecc1a25ef9 100644 --- a/src/lib/elementary/elm_prefs.h +++ b/src/lib/elementary/elm_prefs.h @@ -34,7 +34,7 @@ * * Once a prefs widget is created, after elm_prefs_file_set() is * issued on it, all of its UI elements will get default values, - * declared on that file. To fetch an user's own, personal set of + * declared on that file. To fetch a user's own, personal set of * those values, one gets to pair an @ref elm-prefs-data handle * to the prefs widget. * diff --git a/src/lib/elementary/elm_prefs_eo.h b/src/lib/elementary/elm_prefs_eo.h index 5f6fad3bf2..0fcc5f05dd 100644 --- a/src/lib/elementary/elm_prefs_eo.h +++ b/src/lib/elementary/elm_prefs_eo.h @@ -26,7 +26,7 @@ EWAPI const Efl_Class *elm_prefs_class_get(void); * * Once a prefs widget is created, after elm_prefs_file_set() is issued on it, * all of its UI elements will get default values, when declared on that file. - * To fetch an user's own, personal set of those values, one gets to pair a + * To fetch a user's own, personal set of those values, one gets to pair a * prefs data handle to the prefs widget. This is what this call is intended * for. * @@ -59,7 +59,7 @@ EOAPI Eina_Bool elm_obj_prefs_data_set(Eo *obj, Elm_Prefs_Data *data); * * Once a prefs widget is created, after elm_prefs_file_set() is issued on it, * all of its UI elements will get default values, when declared on that file. - * To fetch an user's own, personal set of those values, one gets to pair a + * To fetch a user's own, personal set of those values, one gets to pair a * prefs data handle to the prefs widget. This is what this call is intended * for. * @@ -147,7 +147,7 @@ EOAPI void elm_obj_prefs_reset(Eo *obj, Elm_Prefs_Reset_Mode mode); /** * @brief Set the value on a given prefs widget's item. * - * This will change the value of item named @c name programatically. + * This will change the value of item named @c name programmatically. * * @param[in] obj The object. * @param[in] name The name of the item (as declared in the prefs collection) @@ -304,7 +304,7 @@ EOAPI Efl_Canvas_Object *elm_obj_prefs_item_unswallow(Eo *obj, const char *name) * * Each prefs item may have a default visibility state, declared on the $.epb * @c prefs it was loaded with. By this call one may alter that state, - * programatically. + * programmatically. * * @param[in] obj The object. * @param[in] name The name of the item (as declared in the prefs collection) diff --git a/src/lib/elementary/elm_prefs_eo.legacy.h b/src/lib/elementary/elm_prefs_eo.legacy.h index 47fb914d56..85a8f5dd7d 100644 --- a/src/lib/elementary/elm_prefs_eo.legacy.h +++ b/src/lib/elementary/elm_prefs_eo.legacy.h @@ -19,7 +19,7 @@ typedef Eo Elm_Prefs; * * Once a prefs widget is created, after elm_prefs_file_set() is issued on it, * all of its UI elements will get default values, when declared on that file. - * To fetch an user's own, personal set of those values, one gets to pair a + * To fetch a user's own, personal set of those values, one gets to pair a * prefs data handle to the prefs widget. This is what this call is intended * for. * @@ -52,7 +52,7 @@ EAPI Eina_Bool elm_prefs_data_set(Elm_Prefs *obj, Elm_Prefs_Data *data); * * Once a prefs widget is created, after elm_prefs_file_set() is issued on it, * all of its UI elements will get default values, when declared on that file. - * To fetch an user's own, personal set of those values, one gets to pair a + * To fetch a user's own, personal set of those values, one gets to pair a * prefs data handle to the prefs widget. This is what this call is intended * for. * @@ -140,7 +140,7 @@ EAPI void elm_prefs_reset(Elm_Prefs *obj, Elm_Prefs_Reset_Mode mode); /** * @brief Set the value on a given prefs widget's item. * - * This will change the value of item named @c name programatically. + * This will change the value of item named @c name programmatically. * * @param[in] obj The object. * @param[in] name The name of the item (as declared in the prefs collection) @@ -297,7 +297,7 @@ EAPI Efl_Canvas_Object *elm_prefs_item_unswallow(Elm_Prefs *obj, const char *nam * * Each prefs item may have a default visibility state, declared on the $.epb * @c prefs it was loaded with. By this call one may alter that state, - * programatically. + * programmatically. * * @param[in] obj The object. * @param[in] name The name of the item (as declared in the prefs collection) diff --git a/src/lib/elementary/elm_removed.h b/src/lib/elementary/elm_removed.h index e6e9795135..1e126c578a 100644 --- a/src/lib/elementary/elm_removed.h +++ b/src/lib/elementary/elm_removed.h @@ -1976,7 +1976,7 @@ EINA_DEPRECATED EAPI void elm_flipselector_item_del(Elm_Object_Item *it); EINA_DEPRECATED EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval); /** - * Get the interval on time updates for an user mouse button hold + * Get the interval on time updates for a user mouse button hold * on a flip selector widget. * * @param obj The flip selector object diff --git a/src/lib/elementary/elm_spinner_eo.h b/src/lib/elementary/elm_spinner_eo.h index ff9205c262..3042003185 100644 --- a/src/lib/elementary/elm_spinner_eo.h +++ b/src/lib/elementary/elm_spinner_eo.h @@ -79,7 +79,7 @@ EOAPI void elm_obj_spinner_wrap_set(Eo *obj, Eina_Bool wrap); EOAPI Eina_Bool elm_obj_spinner_wrap_get(const Eo *obj); /** - * @brief Control the interval on time updates for an user mouse button hold on + * @brief Control the interval on time updates for a user mouse button hold on * spinner widgets' arrows. * * This interval value is decreased while the user holds the mouse pointer @@ -103,7 +103,7 @@ EOAPI Eina_Bool elm_obj_spinner_wrap_get(const Eo *obj); EOAPI void elm_obj_spinner_interval_set(Eo *obj, double interval); /** - * @brief Control the interval on time updates for an user mouse button hold on + * @brief Control the interval on time updates for a user mouse button hold on * spinner widgets' arrows. * * This interval value is decreased while the user holds the mouse pointer diff --git a/src/lib/elementary/elm_spinner_eo.legacy.h b/src/lib/elementary/elm_spinner_eo.legacy.h index 798ec39d37..38ae87a832 100644 --- a/src/lib/elementary/elm_spinner_eo.legacy.h +++ b/src/lib/elementary/elm_spinner_eo.legacy.h @@ -72,7 +72,7 @@ EAPI void elm_spinner_wrap_set(Elm_Spinner *obj, Eina_Bool wrap); EAPI Eina_Bool elm_spinner_wrap_get(const Elm_Spinner *obj); /** - * @brief Control the interval on time updates for an user mouse button hold on + * @brief Control the interval on time updates for a user mouse button hold on * spinner widgets' arrows. * * This interval value is decreased while the user holds the mouse pointer @@ -96,7 +96,7 @@ EAPI Eina_Bool elm_spinner_wrap_get(const Elm_Spinner *obj); EAPI void elm_spinner_interval_set(Elm_Spinner *obj, double interval); /** - * @brief Control the interval on time updates for an user mouse button hold on + * @brief Control the interval on time updates for a user mouse button hold on * spinner widgets' arrows. * * This interval value is decreased while the user holds the mouse pointer diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h index 57394dd2eb..d86128c85d 100644 --- a/src/lib/evas/Evas_Legacy.h +++ b/src/lib/evas/Evas_Legacy.h @@ -5907,7 +5907,7 @@ EAPI int evas_object_image_stride_get(const Evas_Object *obj) EINA_WARN_UNUSED_R * @brief Replaces the raw image data of the given image object. * * This function lets the application replace an image object's internal pixel - * buffer with an user-allocated one. For best results, you should generally + * buffer with a user-allocated one. For best results, you should generally * first call @ref evas_object_image_size_set with the width and height for the * new buffer. * diff --git a/src/modules/evas/image_loaders/gif/evas_image_load_gif.c b/src/modules/evas/image_loaders/gif/evas_image_load_gif.c index 5a55035c5a..fec8f4bb09 100644 --- a/src/modules/evas/image_loaders/gif/evas_image_load_gif.c +++ b/src/modules/evas/image_loaders/gif/evas_image_load_gif.c @@ -263,7 +263,7 @@ _decode_image(GifFileType *gif, DATA32 *data, int rowpix, int xin, int yin, if (cmap) { - // fill in local color table of guaranteed 256 entires with cmap & pad + // fill in local color table of guaranteed 256 entries with cmap & pad for (cnum = 0; cnum < cmap->ColorCount; cnum++) colors[cnum] = cmap->Colors[cnum]; for (cnum = cmap->ColorCount; cnum < 256; cnum++)