From 4cdc6d36fdf24f96468cebd2f31b2571ba9e7f79 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 May 2019 19:15:56 +1000 Subject: [PATCH] Cleanup: spelling for ghost comments --- intern/ghost/GHOST_C-api.h | 2 +- intern/ghost/GHOST_ISystem.h | 2 +- intern/ghost/intern/GHOST_DropTargetWin32.h | 2 +- intern/ghost/intern/GHOST_DropTargetX11.h | 2 +- intern/ghost/intern/GHOST_ImeWin32.cpp | 4 ++-- intern/ghost/intern/GHOST_ImeWin32.h | 8 ++++---- intern/ghost/intern/GHOST_SystemCocoa.mm | 4 ++-- intern/ghost/intern/GHOST_SystemPathsUnix.h | 2 +- intern/ghost/intern/GHOST_SystemWin32.cpp | 4 ++-- intern/ghost/intern/GHOST_SystemX11.h | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index 6f92adde0b2..fa783c17e8c 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -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. */ diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h index 51fa2194f2c..f0ceb7fb8ba 100644 --- a/intern/ghost/GHOST_ISystem.h +++ b/intern/ghost/GHOST_ISystem.h @@ -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). */ diff --git a/intern/ghost/intern/GHOST_DropTargetWin32.h b/intern/ghost/intern/GHOST_DropTargetWin32.h index e1985f85640..588d89f1549 100644 --- a/intern/ghost/intern/GHOST_DropTargetWin32.h +++ b/intern/ghost/intern/GHOST_DropTargetWin32.h @@ -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. diff --git a/intern/ghost/intern/GHOST_DropTargetX11.h b/intern/ghost/intern/GHOST_DropTargetX11.h index 1edb52de5e5..d3f98ff11cf 100644 --- a/intern/ghost/intern/GHOST_DropTargetX11.h +++ b/intern/ghost/intern/GHOST_DropTargetX11.h @@ -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); diff --git a/intern/ghost/intern/GHOST_ImeWin32.cpp b/intern/ghost/intern/GHOST_ImeWin32.cpp index 06fab47933a..9ad12cb0e63 100644 --- a/intern/ghost/intern/GHOST_ImeWin32.cpp +++ b/intern/ghost/intern/GHOST_ImeWin32.cpp @@ -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) { diff --git a/intern/ghost/intern/GHOST_ImeWin32.h b/intern/ghost/intern/GHOST_ImeWin32.h index 9c1f2473223..112217023a7 100644 --- a/intern/ghost/intern/GHOST_ImeWin32.h +++ b/intern/ghost/intern/GHOST_ImeWin32.h @@ -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, diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index 0424b96523b..49e01a983a0 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -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; diff --git a/intern/ghost/intern/GHOST_SystemPathsUnix.h b/intern/ghost/intern/GHOST_SystemPathsUnix.h index bcbe24b0d31..dcd3ab34704 100644 --- a/intern/ghost/intern/GHOST_SystemPathsUnix.h +++ b/intern/ghost/intern/GHOST_SystemPathsUnix.h @@ -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(); diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index deb10377b7d..9f7b6f75e41 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -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. */ { diff --git a/intern/ghost/intern/GHOST_SystemX11.h b/intern/ghost/intern/GHOST_SystemX11.h index 5c474142534..1fe94b40f17 100644 --- a/intern/ghost/intern/GHOST_SystemX11.h +++ b/intern/ghost/intern/GHOST_SystemX11.h @@ -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();