aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-01-20 08:12:06 +0100
committerStefan Weil <sw@weilnetz.de>2014-01-20 08:12:06 +0100
commit4bd582a1f7ee61746255c313bb9cff3a8aa40d4d (patch)
tree94d08c1e1441b4162a72605122f53800fb11b47e
parente8c2c0f8673bf48679ba83da6757361e77ba621d (diff)
downloadscintilla-mirror-4bd582a1f7ee61746255c313bb9cff3a8aa40d4d.tar.gz
Fix typos in comments (win32)
-rw-r--r--win32/PlatWin.cxx6
-rw-r--r--win32/ScintillaWin.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 6ea35d388..3bcc183a6 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -744,7 +744,7 @@ void SurfaceGDI::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesir
8, 8);
}
-// Plot a point into a DWORD buffer symetrically to all 4 qudrants
+// Plot a point into a DWORD buffer symmetrically to all 4 quadrants
static void AllFour(DWORD *pixels, int width, int height, int x, int y, DWORD val) {
pixels[y*width+x] = val;
pixels[y*width+width-1-x] = val;
@@ -987,7 +987,7 @@ void SurfaceGDI::MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *
if (!::GetTextExtentExPointW(hdc, tbuf.buffer, tbuf.tlen, maxWidthMeasure, &fit, poses.buffer, &sz)) {
// Likely to have failed because on Windows 9x where function not available
// So measure the character widths by measuring each initial substring
- // Turns a linear operation into a qudratic but seems fast enough on test files
+ // Turns a linear operation into a quadratic but seems fast enough on test files
for (int widthSS=0; widthSS < tbuf.tlen; widthSS++) {
::GetTextExtentPoint32W(hdc, tbuf.buffer, widthSS+1, &sz);
poses.buffer[widthSS] = sz.cx;
@@ -3053,7 +3053,7 @@ public:
// Use GetProcAddress to get a pointer to the relevant function.
virtual Function FindFunction(const char *name) {
if (h != NULL) {
- // C++ standard doesn't like casts betwen function pointers and void pointers so use a union
+ // C++ standard doesn't like casts between function pointers and void pointers so use a union
union {
FARPROC fp;
Function f;
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 176faed1b..d9a1c88a0 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -411,7 +411,7 @@ ScintillaWin::~ScintillaWin() {}
void ScintillaWin::Initialise() {
// Initialize COM. If the app has already done this it will have
- // no effect. If the app hasnt, we really shouldnt ask them to call
+ // no effect. If the app hasn't, we really shouldn't ask them to call
// it just so this internal feature works.
hrOle = ::OleInitialize(NULL);