forked from bartvdbraak/blender
Cleanup: spelling
This commit is contained in:
parent
2cc5af9c55
commit
5b91a52944
@ -32,32 +32,36 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* Counts how many bytes is required for future utf-8 string using utf-16
|
* Counts how many bytes is required for future utf-8 string using utf-16
|
||||||
* \param string16: pointer to working utf-16 string
|
* \param string16: pointer to working utf-16 string
|
||||||
* \return How many bytes must be allocated includeng NULL.
|
* \return How many bytes must be allocated including NULL.
|
||||||
*/
|
*/
|
||||||
size_t count_utf_8_from_16(const wchar_t *string16);
|
size_t count_utf_8_from_16(const wchar_t *string16);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Counts how many wchar_t (two byte) is required for future utf-16 string using utf-8
|
* Counts how many wchar_t (two byte) is required for future utf-16 string using utf-8
|
||||||
* \param string8: pointer to working utf-8 string
|
* \param string8: pointer to working utf-8 string
|
||||||
* \return How many bytes must be allocated includeng NULL.
|
* \return How many bytes must be allocated including NULL.
|
||||||
*/
|
*/
|
||||||
size_t count_utf_16_from_8(const char *string8);
|
size_t count_utf_16_from_8(const char *string8);
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* conv_utf_*** errors
|
* conv_utf_*** errors
|
||||||
*/
|
*/
|
||||||
#define UTF_ERROR_NULL_IN (1 << 0) /* Error occures when requered parameter is missing*/
|
|
||||||
#define UTF_ERROR_ILLCHAR (1 << 1) /* Error if character is in illigal UTF rage*/
|
/** Error occurs when required parameter is missing. */
|
||||||
#define UTF_ERROR_SMALL \
|
#define UTF_ERROR_NULL_IN (1 << 0)
|
||||||
(1 << 2) /* Passed size is to small. It gives legal string with character missing at the end */
|
/** Error if character is in illegal UTF range. */
|
||||||
#define UTF_ERROR_ILLSEQ (1 << 3) /* Error if sequence is broken and doesn't finish*/
|
#define UTF_ERROR_ILLCHAR (1 << 1)
|
||||||
|
/** Passed size is to small. It gives legal string with character missing at the end. */
|
||||||
|
#define UTF_ERROR_SMALL (1 << 2)
|
||||||
|
/** Error if sequence is broken and doesn't finish. */
|
||||||
|
#define UTF_ERROR_ILLSEQ (1 << 3)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts utf-16 string to allocated utf-8 string
|
* Converts utf-16 string to allocated utf-8 string
|
||||||
* \param in16: utf-16 string to convert
|
* \param in16: utf-16 string to convert
|
||||||
* \param out8: utf-8 string to string the conversion
|
* \param out8: utf-8 string to string the conversion
|
||||||
* \param size8: the allocated size in bytes of out8
|
* \param size8: the allocated size in bytes of out8
|
||||||
* \return Returns any errors occured during conversion. See the block above,
|
* \return Returns any errors occurred during conversion. See the block above,
|
||||||
*/
|
*/
|
||||||
int conv_utf_16_to_8(const wchar_t *in16, char *out8, size_t size8);
|
int conv_utf_16_to_8(const wchar_t *in16, char *out8, size_t size8);
|
||||||
|
|
||||||
@ -66,7 +70,7 @@ int conv_utf_16_to_8(const wchar_t *in16, char *out8, size_t size8);
|
|||||||
* \param in8: utf-8 string to convert
|
* \param in8: utf-8 string to convert
|
||||||
* \param out16: utf-16 string to string the conversion
|
* \param out16: utf-16 string to string the conversion
|
||||||
* \param size16: the allocated size in wchar_t (two byte) of out16
|
* \param size16: the allocated size in wchar_t (two byte) of out16
|
||||||
* \return Returns any errors occured during conversion. See the block above,
|
* \return Returns any errors occurred during conversion. See the block above,
|
||||||
*/
|
*/
|
||||||
int conv_utf_8_to_16(const char *in8, wchar_t *out16, size_t size16);
|
int conv_utf_8_to_16(const char *in8, wchar_t *out16, size_t size16);
|
||||||
|
|
||||||
|
@ -139,13 +139,13 @@ void EEVEE_screen_raytrace_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *v
|
|||||||
*
|
*
|
||||||
* Following Frostbite stochastic SSR.
|
* Following Frostbite stochastic SSR.
|
||||||
*
|
*
|
||||||
* - First pass Trace rays across the depth buffer. The hit position and pdf are
|
* - First pass Trace rays across the depth buffer. The hit position and PDF are
|
||||||
* recorded in a RGBA16F render target for each ray (sample).
|
* recorded in a RGBA16F render target for each ray (sample).
|
||||||
*
|
*
|
||||||
* - We down-sample the previous frame color buffer.
|
* - We down-sample the previous frame color buffer.
|
||||||
*
|
*
|
||||||
* - For each final pixel, we gather neighbors rays and choose a color buffer
|
* - For each final pixel, we gather neighbors rays and choose a color buffer
|
||||||
* mipmap for each ray using its pdf. (filtered importance sampling)
|
* mipmap for each ray using its PDF. (filtered importance sampling)
|
||||||
* We then evaluate the lighting from the probes and mix the results together.
|
* We then evaluate the lighting from the probes and mix the results together.
|
||||||
*/
|
*/
|
||||||
DRW_PASS_CREATE(psl->ssr_raytrace, DRW_STATE_WRITE_COLOR);
|
DRW_PASS_CREATE(psl->ssr_raytrace, DRW_STATE_WRITE_COLOR);
|
||||||
|
@ -1819,7 +1819,7 @@ static void ui_text_clip_right_label(const uiFontStyle *fstyle, uiBut *but, cons
|
|||||||
but->strwidth = BLF_width(fstyle->uifont_id, but->drawstr, sizeof(but->drawstr));
|
but->strwidth = BLF_width(fstyle->uifont_id, but->drawstr, sizeof(but->drawstr));
|
||||||
but->ofs = 0;
|
but->ofs = 0;
|
||||||
|
|
||||||
/* First shorten num-buttons eg,
|
/* First shorten number-buttons eg,
|
||||||
* Translucency: 0.000
|
* Translucency: 0.000
|
||||||
* becomes
|
* becomes
|
||||||
* Trans: 0.000
|
* Trans: 0.000
|
||||||
@ -3801,7 +3801,7 @@ static void widget_numslider(
|
|||||||
wtb.draw_inner = false;
|
wtb.draw_inner = false;
|
||||||
widgetbase_draw(&wtb, wcol);
|
widgetbase_draw(&wtb, wcol);
|
||||||
|
|
||||||
/* Add space at either side of the button so text aligns with numbuttons
|
/* Add space at either side of the button so text aligns with number-buttons
|
||||||
* (which have arrow icons). */
|
* (which have arrow icons). */
|
||||||
if (!(state & UI_STATE_TEXT_INPUT)) {
|
if (!(state & UI_STATE_TEXT_INPUT)) {
|
||||||
rect->xmax -= toffs;
|
rect->xmax -= toffs;
|
||||||
|
@ -45,7 +45,7 @@ static AbstractTreeElement *tree_element_create(int type, TreeElement &legacy_te
|
|||||||
* it as much as possible for now. Would be nice to entirely get rid of that, no more `void *`.
|
* it as much as possible for now. Would be nice to entirely get rid of that, no more `void *`.
|
||||||
*
|
*
|
||||||
* Once #outliner_add_element() is sufficiently simplified, it should be replaced by a C++ call.
|
* Once #outliner_add_element() is sufficiently simplified, it should be replaced by a C++ call.
|
||||||
* It could take the derived type as template paramenter (e.g. #TreeElementAnimData) and use C++
|
* It could take the derived type as template parameter (e.g. #TreeElementAnimData) and use C++
|
||||||
* perfect forwarding to pass any data to the type's constructor.
|
* perfect forwarding to pass any data to the type's constructor.
|
||||||
* If general Outliner code wants to access the data, they can query that through the derived
|
* If general Outliner code wants to access the data, they can query that through the derived
|
||||||
* element type then. There's no need for `void *` anymore then.
|
* element type then. There's no need for `void *` anymore then.
|
||||||
|
@ -331,7 +331,7 @@ class GeometryNodesEvaluator {
|
|||||||
values.append(this->get_input_from_incoming_link(socket_to_compute, from_socket));
|
values.append(this->get_input_from_incoming_link(socket_to_compute, from_socket));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* If the same from-socket occures more than once, we make a copy of the first value. This
|
/* If the same from-socket occurs more than once, we make a copy of the first value. This
|
||||||
* can happen when a node linked to a multi-input-socket is muted. */
|
* can happen when a node linked to a multi-input-socket is muted. */
|
||||||
GMutablePointer value = values[first_occurence];
|
GMutablePointer value = values[first_occurence];
|
||||||
const CPPType *type = value.type();
|
const CPPType *type = value.type();
|
||||||
@ -647,7 +647,7 @@ static IDProperty *socket_add_property(IDProperty *settings_prop_group,
|
|||||||
|
|
||||||
prop->flag |= IDP_FLAG_OVERRIDABLE_LIBRARY;
|
prop->flag |= IDP_FLAG_OVERRIDABLE_LIBRARY;
|
||||||
|
|
||||||
/* Make the group in the ui container group to hold the property's UI settings. */
|
/* Make the group in the UI container group to hold the property's UI settings. */
|
||||||
IDProperty *prop_ui_group;
|
IDProperty *prop_ui_group;
|
||||||
{
|
{
|
||||||
IDPropertyTemplate idprop = {0};
|
IDPropertyTemplate idprop = {0};
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
/** \file
|
/** \file
|
||||||
* \ingroup wm
|
* \ingroup wm
|
||||||
*
|
*
|
||||||
* Internal functions for managing UI registrable types (operator, UI and menu types).
|
* Internal functions for managing UI registerable types (operator, UI and menu types).
|
||||||
*
|
*
|
||||||
* Also Blender's main event loop (WM_main).
|
* Also Blender's main event loop (WM_main).
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user