Cleanup: spelling for ghost comments

This commit is contained in:
Campbell Barton 2019-05-19 19:15:56 +10:00
parent f2eef45200
commit 4cdc6d36fd
10 changed files with 16 additions and 16 deletions

@ -33,7 +33,7 @@ extern "C" {
/**
* Creates a "handle" for a C++ GHOST object.
* A handle is just an opaque pointer to an empty struct.
* In the API the pointer is casted to the actual C++ class.
* In the API the pointer is cast to the actual C++ class.
* The 'name' argument to the macro is the name of the handle to create.
*/

@ -235,7 +235,7 @@ class GHOST_ISystem {
* \param state: The state of the window when opened.
* \param type: The type of drawing context installed in this window.
* \param glSettings: Misc OpenGL settings.
* \param exclusive: Use to show the window ontop and ignore others (used fullscreen).
* \param exclusive: Use to show the window on top and ignore others (used fullscreen).
* \param parentWindow: Parent (embedder) window
* \return The new window (or 0 if creation failed).
*/

@ -125,7 +125,7 @@ class GHOST_DropTargetWin32 : public IDropTarget {
void *getDropDataAsString(IDataObject *pDataObject);
/**
* Convert Unicode to ANSI, replacing unconvertable chars with '?'.
* Convert Unicode to ANSI, replacing uncomfortable chars with '?'.
* The ANSI codepage is the system default codepage,
* and can change from system to system.
* \param in LPCWSTR.

@ -69,7 +69,7 @@ class GHOST_DropTargetX11 {
void Initialize(void);
/**
* Uninitialize XDND and all related X atoms
* Uninitialized XDND and all related X atoms
*/
void Uninitialize(void);

@ -178,7 +178,7 @@ void GHOST_ImeWin32::CleanupComposition(HWND window_handle)
/**
* Notify the IMM attached to the given window to complete the ongoing
* composition, (this case happens when the given window is de-activated
* while composing a text and re-activated), and reset the omposition status.
* while composing a text and re-activated), and reset the composition status.
*/
if (is_composing_) {
HIMC imm_context = ::ImmGetContext(window_handle);
@ -273,7 +273,7 @@ void GHOST_ImeWin32::GetCaret(HIMC imm_context, LPARAM lparam, ImeComposition *c
/**
* For Japanese IMEs, the robustest way to retrieve the caret
* is scanning the attribute of the latest composition string and
* retrieving the begining and the end of the target clause, i.e.
* retrieving the beginning and the end of the target clause, i.e.
* a clause being converted.
*/
if (lparam & GCS_COMPATTR) {

@ -122,7 +122,7 @@ struct ImeComposition {
/**
* This class controls the IMM (Input Method Manager) through IMM32 APIs and
* enables it to retrieve the string being controled by the IMM. (I wrote
* enables it to retrieve the string being controlled by the IMM. (I wrote
* a note to describe the reason why I do not use 'IME' but 'IMM' below.)
* NOTE(hbono):
* Fortunately or unfortunately, TSF (Text Service Framework) and
@ -274,7 +274,7 @@ class GHOST_ImeWin32 {
* events to be dispatched to the IME.
* In Chrome, this function is used when:
* * a renderer process moves its input focus to another edit control, or;
* * a renrerer process moves the position of the focused edit control.
* * a renderer process moves the position of the focused edit control.
* Parameters
* * window_handle [in] (HWND)
* Represents the window handle of the caller.
@ -297,7 +297,7 @@ class GHOST_ImeWin32 {
* Disable the IME attached to the given window, i.e. prohibits any user-input
* events from being dispatched to the IME.
* In Chrome, this function is used when:
* * a renreder process sets its input focus to a password input.
* * a rendeder process sets its input focus to a password input.
* Parameters
* * window_handle [in] (HWND)
* Represents the window handle of the caller.
@ -350,7 +350,7 @@ class GHOST_ImeWin32 {
/**
* The current input Language ID retrieved from Windows, which consists of:
* * Primary Language ID (bit 0 to bit 9), which shows a natunal language
* * Primary Language ID (bit 0 to bit 9), which shows a natural language
* (English, Korean, Chinese, Japanese, etc.) and;
* * Sub-Language ID (bit 10 to bit 15), which shows a geometrical region
* the language is spoken (For English, United States, United Kingdom,

@ -1591,7 +1591,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
window->getClientBounds(bounds);
/* Switch back to Cocoa coordinates orientation
* (y=0 at botton,the same as blender internal btw!), and to client coordinates. */
* (y=0 at bottom, the same as blender internal btw!), and to client coordinates. */
window->getClientBounds(windowBounds);
window->screenToClient(bounds.m_l, bounds.m_b, correctedBounds.m_l, correctedBounds.m_t);
window->screenToClient(bounds.m_r, bounds.m_t, correctedBounds.m_r, correctedBounds.m_b);
@ -1665,7 +1665,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
else if (phase == NSEventPhaseEnded)
m_multiTouchScroll = false;
/* Standard scrollwheel case, if no swiping happened,
/* Standard scroll-wheel case, if no swiping happened,
* and no momentum (kinetic scroll) works. */
if (!m_multiTouchScroll && momentumPhase == NSEventPhaseNone) {
GHOST_TInt32 delta;

@ -31,7 +31,7 @@ class GHOST_SystemPathsUnix : public GHOST_SystemPaths {
public:
/**
* Constructor
* this class should only be instanciated by GHOST_ISystem.
* this class should only be instantiated by GHOST_ISystem.
*/
GHOST_SystemPathsUnix();

@ -1524,7 +1524,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
* message without calling DefWindowProc.
*/
/* we get first WM_SIZE before we fully init.
* So, do not dispatch before we continiously resizng */
* So, do not dispatch before we continuously resizing. */
if (window->m_inLiveResize) {
system->pushEvent(processWindowEvent(GHOST_kEventWindowSize, window));
system->dispatchEvents();
@ -1560,7 +1560,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
case WM_DPICHANGED:
/* The WM_DPICHANGED message is sent when the effective dots per inch (dpi) for a
* window has changed. The DPI is the scale factor for a window. There are multiple
* events that can cause the DPI tochange such as when the window is moved to a monitor
* events that can cause the DPI to change such as when the window is moved to a monitor
* with a different DPI.
*/
{

@ -78,7 +78,7 @@ class GHOST_SystemX11 : public GHOST_System {
public:
/**
* Constructor
* this class should only be instanciated by GHOST_ISystem.
* this class should only be instantiated by GHOST_ISystem.
*/
GHOST_SystemX11();