diff options
Diffstat (limited to 'src/gui')
| -rw-r--r-- | src/gui/guiEditBoxWithScrollbar.cpp | 6 | ||||
| -rw-r--r-- | src/gui/guiHyperText.cpp | 2 | ||||
| -rw-r--r-- | src/gui/guiInventoryList.cpp | 2 | ||||
| -rw-r--r-- | src/gui/touchscreengui.cpp | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/guiEditBoxWithScrollbar.cpp b/src/gui/guiEditBoxWithScrollbar.cpp index 1b7f7832a..335085d13 100644 --- a/src/gui/guiEditBoxWithScrollbar.cpp +++ b/src/gui/guiEditBoxWithScrollbar.cpp @@ -440,7 +440,7 @@ void GUIEditBoxWithScrollBar::setTextRect(s32 line) // justification switch (m_halign) { case EGUIA_CENTER: - // align to h centre + // align to h center m_current_text_rect.UpperLeftCorner.X = (m_frame_rect.getWidth() / 2) - (d.Width / 2); m_current_text_rect.LowerRightCorner.X = (m_frame_rect.getWidth() / 2) + (d.Width / 2); break; @@ -458,7 +458,7 @@ void GUIEditBoxWithScrollBar::setTextRect(s32 line) switch (m_valign) { case EGUIA_CENTER: - // align to v centre + // align to v center m_current_text_rect.UpperLeftCorner.Y = (m_frame_rect.getHeight() / 2) - (line_count*d.Height) / 2 + d.Height*line; break; @@ -518,7 +518,7 @@ void GUIEditBoxWithScrollBar::calculateScrollPos() if (txt_width < m_frame_rect.getWidth()) { // TODO: Needs a clean left and right gap removal depending on HAlign, similar to vertical scrolling tests for top/bottom. - // This check just fixes the case where it was most noticable (text smaller than clipping area). + // This check just fixes the case where it was most noticeable (text smaller than clipping area). m_hscroll_pos = 0; setTextRect(curs_line); diff --git a/src/gui/guiHyperText.cpp b/src/gui/guiHyperText.cpp index 40450ce5f..233a7e635 100644 --- a/src/gui/guiHyperText.cpp +++ b/src/gui/guiHyperText.cpp @@ -776,7 +776,7 @@ void TextDrawer::place(const core::rect<s32> &dest_rect) u32 charswidth = 0; u32 wordcount = 0; - // Skip begining of line separators but include them in height + // Skip beginning of line separators but include them in height // computation. while (el != p.elements.end() && el->type == ParsedText::ELEMENT_SEPARATOR) { diff --git a/src/gui/guiInventoryList.cpp b/src/gui/guiInventoryList.cpp index 183d72165..d2a0d344e 100644 --- a/src/gui/guiInventoryList.cpp +++ b/src/gui/guiInventoryList.cpp @@ -205,7 +205,7 @@ s32 GUIInventoryList::getItemIndexAtPos(v2s32 p) const !AbsoluteClippingRect.isPointInside(p)) return -1; - // there can not be an item if the inventory or the inventorylist does not exist + // there cannot be an item if the inventory or the inventorylist does not exist Inventory *inv = m_invmgr->getInventory(m_inventoryloc); if (!inv) return -1; diff --git a/src/gui/touchscreengui.cpp b/src/gui/touchscreengui.cpp index b2a4b489a..70f1c5163 100644 --- a/src/gui/touchscreengui.cpp +++ b/src/gui/touchscreengui.cpp @@ -739,7 +739,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event) /* * Add to own copy of event list... * android would provide this information but Irrlicht guys don't - * wanna design a efficient interface + * wanna design an efficient interface */ id_status toadd{}; toadd.id = event.TouchInput.ID; @@ -848,7 +848,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event) s32 dy = Y - m_pointerpos[event.TouchInput.ID].Y; m_pointerpos[event.TouchInput.ID] = v2s32(X, Y); - // adapt to similar behaviour as pc screen + // adapt to similar behavior as pc screen const double d = g_settings->getFloat("mouse_sensitivity", 0.001f, 10.0f) * 3.0f; m_camera_yaw_change -= dx * d; |
