summaryrefslogtreecommitdiff
path: root/NxWidgets
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-12 10:53:29 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-12 10:53:29 -0600
commite7b8284f85e94b738dff37ae80f0874bb1c32b94 (patch)
treed622041fb0102ab6cf74a80d0688e70f51d86af6 /NxWidgets
parentc22f584912f0a49a1d25e4e040baa10419ce7a37 (diff)
downloadnuttx-e7b8284f85e94b738dff37ae80f0874bb1c32b94.tar.gz
nuttx-e7b8284f85e94b738dff37ae80f0874bb1c32b94.tar.bz2
nuttx-e7b8284f85e94b738dff37ae80f0874bb1c32b94.zip
Cosmetic update to comments
Diffstat (limited to 'NxWidgets')
-rw-r--r--NxWidgets/nxwm/src/ccalibration.cxx4
-rw-r--r--NxWidgets/nxwm/src/ctouchscreen.cxx11
2 files changed, 7 insertions, 8 deletions
diff --git a/NxWidgets/nxwm/src/ccalibration.cxx b/NxWidgets/nxwm/src/ccalibration.cxx
index 74be1fd09..2a65662ff 100644
--- a/NxWidgets/nxwm/src/ccalibration.cxx
+++ b/NxWidgets/nxwm/src/ccalibration.cxx
@@ -1010,7 +1010,7 @@ void CCalibration::stateMachine(void)
m_calibData[CALIB_LOWER_LEFT_INDEX].y = m_touchPos.y;
#endif
- // Clear the previous screen by re-drawing it using the backgro9und
+ // Clear the previous screen by re-drawing it using the background
// color. That is much faster than clearing the whole display
m_screenInfo.lineColor = CONFIG_NXWM_CALIBRATION_BACKGROUNDCOLOR;
@@ -1289,7 +1289,7 @@ CCalibrationFactory::CCalibrationFactory(CTaskbar *taskbar, CTouchscreen *touchs
IApplication *CCalibrationFactory::create(void)
{
// Call CTaskBar::openFullScreenWindow to create a full screen window for
- // the calibation application
+ // the calibration application
CFullScreenWindow *window = m_taskbar->openFullScreenWindow();
if (!window)
diff --git a/NxWidgets/nxwm/src/ctouchscreen.cxx b/NxWidgets/nxwm/src/ctouchscreen.cxx
index 545405b81..dc462727d 100644
--- a/NxWidgets/nxwm/src/ctouchscreen.cxx
+++ b/NxWidgets/nxwm/src/ctouchscreen.cxx
@@ -228,7 +228,7 @@ void CTouchscreen::setCalibrationData(const struct SCalibrationData &caldata)
* This function is not re-entrant: There may be only one thread waiting for
* raw touchscreen data.
*
- * @return True if the raw touchscreen data was sucessfully obtained
+ * @return True if the raw touchscreen data was successfully obtained
*/
bool CTouchscreen::waitRawTouchData(struct touch_sample_s *touch)
@@ -265,7 +265,7 @@ bool CTouchscreen::waitRawTouchData(struct touch_sample_s *touch)
/**
* The touchscreen listener thread. This is the entry point of a thread that
- * listeners for and dispatches touchscreens events to the NX server.
+ * listeners for and dispatches touchscreen events to the NX server.
*
* @param arg. The CTouchscreen 'this' pointer cast to a void*.
* @return This function normally does not return but may return NULL on
@@ -320,7 +320,7 @@ FAR void *CTouchscreen::listener(FAR void *arg)
// 3. Normal operation, reading touchscreen data and forwarding it to NX
// Check if we need to collect touchscreen data. That is, that we are enabled,
- // AND have calibratation data OR if we need to collect data for the calbration
+ // AND have calibration data OR if we need to collect data for the calibration
// process.
while ((!This->m_enabled || !This->m_calibrated) && !This->m_capture)
@@ -431,7 +431,7 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample)
DEBUGASSERT(sample == &m_sample);
- // Check if normal processing of touchscreen data is enaable. Check if
+ // Check if normal processing of touchscreen data is enabled. Check if
// we have been given calibration data.
if (!m_enabled || !m_calibrated)
@@ -443,7 +443,7 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample)
}
// Now we will inject the touchscreen into NX as mouse input. First
- // massage the data a litle so that it behaves a little more like a
+ // massage the data a little so that it behaves a little more like a
// mouse with only a left button
//
// Was the button up or down?
@@ -592,4 +592,3 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample)
NXHANDLE handle = m_server->getServer();
(void)nx_mousein(handle, x, y, buttons);
}
-