Skip to content

Commit a1b55d9

Browse files
committed
Fix source comment typos
Found via `codespell -q 3 -S ./dgl/src/pugl-upstream`
1 parent c9ce338 commit a1b55d9

21 files changed

Lines changed: 47 additions & 47 deletions

dgl/OpenGL.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ GLenum asOpenGLImageFormat(const ImageFormat format)
9393
OpenGL Image class.
9494
9595
This is an Image class that handles raw image data in pixels.
96-
You can init the image data on the contructor or later on by calling loadFromMemory().
96+
You can init the image data on the constructor or later on by calling loadFromMemory().
9797
9898
To generate raw data useful for this class see the utils/png2rgba.py script.
9999
Be careful when using a PNG without alpha channel, for those the format is 'GL_BGR'

dgl/src/nanovg/nanovg_gl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static int glnvg__renderCreate(void* uptr, void* otherUptr) // Share the textu
694694
" color *= strokeAlpha * scissor;\n"
695695
" result = color;\n"
696696
" } else if (type == 1) { // Image\n"
697-
" // Calculate color fron texture\n"
697+
" // Calculate color from texture\n"
698698
" vec2 pt = (paintMat * vec3(fpos,1.0)).xy / extent;\n"
699699
"#ifdef NANOVG_GL3\n"
700700
" vec4 color = texture(tex, pt);\n"

dgl/src/nanovg/stb_truetype.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h
647647
STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip);
648648
// If skip != 0, this tells stb_truetype to skip any codepoints for which
649649
// there is no corresponding glyph. If skip=0, which is the default, then
650-
// codepoints without a glyph recived the font's "missing character" glyph,
650+
// codepoints without a glyph received the font's "missing character" glyph,
651651
// typically an empty box by convention.
652652

653653
STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above

dgl/src/pugl-custom/pugl.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ typedef void (*PuglDisplayFunc)(PuglView* view);
139139

140140
/**
141141
A function called when a key is pressed or released.
142-
@param view The view the event occured in.
142+
@param view The view the event occurred in.
143143
@param press True if the key was pressed, false if released.
144144
@param key Unicode point of the key pressed.
145145
@return 0 if event was handled, otherwise send event to parent window.
@@ -148,15 +148,15 @@ typedef int (*PuglKeyboardFunc)(PuglView* view, bool press, uint32_t key);
148148

149149
/**
150150
A function called when the pointer moves.
151-
@param view The view the event occured in.
151+
@param view The view the event occurred in.
152152
@param x The window-relative x coordinate of the pointer.
153153
@param y The window-relative y coordinate of the pointer.
154154
*/
155155
typedef void (*PuglMotionFunc)(PuglView* view, int x, int y);
156156

157157
/**
158158
A function called when a mouse button is pressed or released.
159-
@param view The view the event occured in.
159+
@param view The view the event occurred in.
160160
@param button The button number (1 = left, 2 = middle, 3 = right).
161161
@param press True if the key was pressed, false if released.
162162
@param x The window-relative x coordinate of the pointer.
@@ -205,7 +205,7 @@ typedef void (*PuglScrollFunc)(PuglView* view, int x, int y, float dx, float dy)
205205
This callback allows the use of keys that do not have unicode points.
206206
Note that some are non-printable keys.
207207
208-
@param view The view the event occured in.
208+
@param view The view the event occurred in.
209209
@param press True if the key was pressed, false if released.
210210
@param key The key pressed.
211211
@return 0 if event was handled, otherwise send event to parent window.
@@ -215,7 +215,7 @@ typedef int (*PuglSpecialFunc)(PuglView* view, bool press, PuglKey key);
215215
/**
216216
A function called when a filename is selected via file-browser.
217217
218-
@param view The view the event occured in.
218+
@param view The view the event occurred in.
219219
@param filename The selected file name or NULL if the dialog was canceled.
220220
*/
221221
typedef void (*PuglFileSelectedFunc)(PuglView* view, const char* filename);

dgl/src/pugl-custom/pugl_win.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ puglCreateWindow(PuglView* view, const char* title)
149149
if (view->user_resizable) {
150150
winFlags |= WS_SIZEBOX;
151151
if (view->min_width > 0 && view->min_height > 0) {
152-
// Adjust the minimum window size to accomodate requested view size
152+
// Adjust the minimum window size to accommodate requested view size
153153
RECT mr = { 0, 0, view->min_width, view->min_height };
154154
AdjustWindowRectEx(&mr, view->parent ? WS_CHILD : winFlags, FALSE, WS_EX_TOPMOST);
155155
view->min_width = mr.right - mr.left;
156156
view->min_height = mr.bottom - mr.top;
157157
}
158158
}
159159

160-
// Adjust the window size to accomodate requested view size
160+
// Adjust the window size to accommodate requested view size
161161
RECT wr = { 0, 0, view->width, view->height };
162162
AdjustWindowRectEx(&wr, view->parent ? WS_CHILD : winFlags, FALSE, WS_EX_TOPMOST);
163163

dgl/src/pugl-custom/pugl_x11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*/
5353
//#define PUGL_GRAB_FOCUS
5454

55-
/* show messages during initalization
55+
/* show messages during initialization
5656
*/
5757
//#define PUGL_VERBOSE
5858

distrho/DistrhoPlugin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static const uint32_t kParameterIsLogarithmic = 0x08;
120120
The other exception is with parameter change requests, see Plugin::requestParameterValueChange().@n
121121
Outputs are changed by the plugin and never modified by the host.
122122
123-
If you are targetting VST2, make sure to order your parameters so that all inputs are before any outputs.
123+
If you are targeting VST2, make sure to order your parameters so that all inputs are before any outputs.
124124
*/
125125
static const uint32_t kParameterIsOutput = 0x10;
126126

distrho/DistrhoPluginUtils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct AudioMidiSyncHelper
125125
}
126126

127127
/**
128-
Process a batch of events untill no more are available.
128+
Process a batch of events until no more are available.
129129
You must not read any more values from this class after this function returns false.
130130
*/
131131
bool nextEvent()

distrho/DistrhoUI.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class UI : public UIWidget
9797
There are situations where an UI supports resizing but the plugin host does not, so this could return false.
9898
9999
You might want to add a resize handle for such cases, so the user is still allowed to resize the window.
100-
(programatically resizing a window is always possible, but the same is not true for the window manager)
100+
(programmatically resizing a window is always possible, but the same is not true for the window manager)
101101
*/
102102
bool isResizable() const noexcept;
103103

@@ -351,14 +351,14 @@ class UI : public UIWidget
351351
#if DISTRHO_PLUGIN_HAS_EXTERNAL_UI
352352
/**
353353
External Window resize function, called when the window is resized.
354-
This is overriden here so the host knows when the UI is resized by you.
354+
This is overridden here so the host knows when the UI is resized by you.
355355
@see ExternalWindow::sizeChanged(uint,uint)
356356
*/
357357
void sizeChanged(uint width, uint height) override;
358358
#else
359359
/**
360360
Widget resize function, called when the widget is resized.
361-
This is overriden here so the host knows when the UI is resized by you.
361+
This is overridden here so the host knows when the UI is resized by you.
362362
@see Widget::onResize(const ResizeEvent&)
363363
*/
364364
void onResize(const ResizeEvent& ev) override;

distrho/extra/ExternalWindow.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ExternalWindow
9595
}
9696

9797
/* --------------------------------------------------------------------------------------------------------
98-
* ExternalWindow specific calls - Host side calls that you can reimplement for fine-grained funtionality */
98+
* ExternalWindow specific calls - Host side calls that you can reimplement for fine-grained functionality */
9999

100100
/**
101101
Check if main-loop is running.
@@ -127,7 +127,7 @@ class ExternalWindow
127127

128128
/**
129129
Get the "native" window handle.
130-
This can be reimplemented in order to pass the native window to hosts that can use such informaton.
130+
This can be reimplemented in order to pass the native window to hosts that can use such information.
131131
132132
Returned value type depends on the platform:
133133
- HaikuOS: This is a pointer to a `BView`.

0 commit comments

Comments
 (0)