Cleanup: spelling
This commit is contained in:
parent
53e1442ac2
commit
67ee87a6e9
|
@ -870,7 +870,7 @@ GHOST_EventButton *GHOST_SystemWin32::processButtonEvent(GHOST_TEventType type,
|
|||
|
||||
/* Move mouse to button event position. */
|
||||
if (window->getTabletData().Active != GHOST_kTabletModeNone) {
|
||||
/* Tablet should be handling inbetween mouse moves, only move to event position. */
|
||||
/* Tablet should be handling in between mouse moves, only move to event position. */
|
||||
DWORD msgPos = ::GetMessagePos();
|
||||
int msgPosX = GET_X_LPARAM(msgPos);
|
||||
int msgPosY = GET_Y_LPARAM(msgPos);
|
||||
|
|
|
@ -2563,7 +2563,7 @@ static bool is_filler_char(char c)
|
|||
return isspace(c) || c == '_' || c == '-' || c == ';' || c == ':';
|
||||
}
|
||||
|
||||
/* These C functions are copied from Wine 3.12's wintab.c */
|
||||
/* These C functions are copied from Wine 3.12's `wintab.c` */
|
||||
static bool match_token(const char *haystack, const char *needle)
|
||||
{
|
||||
const char *h, *n;
|
||||
|
|
|
@ -273,7 +273,7 @@ class GHOST_WindowWin32 : public GHOST_Window {
|
|||
/**
|
||||
* Loads Wintab context for the window.
|
||||
* \param enable: True if Wintab should be enabled after loading. Wintab should not be enabled if
|
||||
* the window is minimzed.
|
||||
* the window is minimized.
|
||||
*/
|
||||
void loadWintab(bool enable);
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ void GHOST_Wintab::modifyContext(LOGCONTEXT &lc)
|
|||
lc.lcOptions |= CXO_CSRMESSAGES | CXO_MESSAGES;
|
||||
|
||||
/* Tablet scaling is handled manually because some drivers don't handle HIDPI or multi-display
|
||||
* correctly; reset tablet scale factors to unscaled tablet coodinates. */
|
||||
* correctly; reset tablet scale factors to un-scaled tablet coordinates. */
|
||||
lc.lcOutOrgX = lc.lcInOrgX;
|
||||
lc.lcOutOrgY = lc.lcInOrgY;
|
||||
lc.lcOutExtX = lc.lcInExtX;
|
||||
|
|
|
@ -106,7 +106,7 @@ class GHOST_Wintab {
|
|||
* \param x_in: The tablet x coordinate.
|
||||
* \param y_in: The tablet y coordinate.
|
||||
* \param x_out: Output for the Win32 mapped x coordinate.
|
||||
* \param y_out: Output for the Win32 mapped y coordiante.
|
||||
* \param y_out: Output for the Win32 mapped y coordinate.
|
||||
*/
|
||||
void mapWintabToSysCoordinates(int x_in, int y_in, int &x_out, int &y_out);
|
||||
|
||||
|
@ -140,7 +140,7 @@ class GHOST_Wintab {
|
|||
bool trustCoordinates();
|
||||
|
||||
/**
|
||||
* Tests whether Wintab coordinates can be trusted by comparing Win32 and Wintab reported curser
|
||||
* Tests whether Wintab coordinates can be trusted by comparing Win32 and Wintab reported cursor
|
||||
* position.
|
||||
* \param sysX: System cursor x position.
|
||||
* \param sysY: System cursor y position.
|
||||
|
@ -148,7 +148,7 @@ class GHOST_Wintab {
|
|||
* \param wtY: Wintab cursor y position.
|
||||
* \return True if Win32 and Wintab cursor positions match within tolerance.
|
||||
*
|
||||
* Note: Only test coordiantes on button press, not release. This prevents issues when async
|
||||
* Note: Only test coordinates on button press, not release. This prevents issues when async
|
||||
* mismatch causes mouse movement to replay and snap back, which is only an issue while drawing.
|
||||
*/
|
||||
bool testCoordinates(int sysX, int sysY, int wtX, int wtY);
|
||||
|
@ -160,7 +160,7 @@ class GHOST_Wintab {
|
|||
GHOST_TabletData getLastTabletData();
|
||||
|
||||
private:
|
||||
/** Wintab dll handle. */
|
||||
/** Wintab DLL handle. */
|
||||
unique_hmodule m_handle;
|
||||
/** Wintab API functions. */
|
||||
GHOST_WIN32_WTInfo m_fpInfo = nullptr;
|
||||
|
@ -180,7 +180,7 @@ class GHOST_Wintab {
|
|||
/** Pressed button map. */
|
||||
GHOST_TUns8 m_buttons = 0;
|
||||
|
||||
/** Range of a coodinate space. */
|
||||
/** Range of a coordinate space. */
|
||||
struct Range {
|
||||
/** Origin of range. */
|
||||
int org = 0;
|
||||
|
|
|
@ -2648,10 +2648,10 @@ static Base *duplibase_for_convert(
|
|||
ED_object_base_select(basen, BA_SELECT);
|
||||
ED_object_base_select(base, BA_DESELECT);
|
||||
|
||||
/* XXX An ugly hack needed because if we re-run depsgraph with some new MBall objects
|
||||
* having same 'family name' as orig ones, they will affect end result of MBall computation...
|
||||
/* XXX: An ugly hack needed because if we re-run depsgraph with some new meta-ball objects
|
||||
* having same 'family name' as orig ones, they will affect end result of meta-ball computation.
|
||||
* For until we get rid of that name-based thingy in MBalls, that should do the trick
|
||||
* (this is weak, but other solution (to change name of obn) is even worse imho).
|
||||
* (this is weak, but other solution (to change name of `obn`) is even worse imho).
|
||||
* See T65996. */
|
||||
const bool is_meta_ball = (obn->type == OB_MBALL);
|
||||
void *obdata = obn->data;
|
||||
|
|
|
@ -54,7 +54,7 @@ class DataSource {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns true iff the data source has the ability to limit visible rows
|
||||
* Returns true if the data source has the ability to limit visible rows
|
||||
* by user interface selection status.
|
||||
*/
|
||||
virtual bool has_selection_filter() const
|
||||
|
|
Loading…
Reference in New Issue