chore: fix typos (#83)

This commit is contained in:
Kian-Meng Ang 2023-02-09 14:07:53 +08:00 committed by GitHub
parent 1d62f24270
commit 5b1ca94646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@ Lynx is the original terminal web browser, and the oldest one still maintained.
- Does not support a lot of modern web standards
- Cannot run JavaScript/WebAssembly
- Cannot view or play medias (audio, video, DOOM)
- Cannot view or play media (audio, video, DOOM)
### Browsh

View File

@ -100,7 +100,7 @@ void Renderer::DrawText(const std::string& text, const gfx::RectF& bounds, uint3
carbonyl_renderer_draw_text(ptr_, text.c_str(), &rect, &color);
}
void Renderer::DrawBackgrond(const unsigned char* pixels, size_t pixels_size, const gfx::Rect& bounds) {
void Renderer::DrawBackground(const unsigned char* pixels, size_t pixels_size, const gfx::Rect& bounds) {
struct carbonyl_bridge_rect rect;
rect.origin.x = bounds.x();

View File

@ -57,7 +57,7 @@ public:
void SetTitle(const std::string& title);
void ClearText();
void DrawText(const std::string& text, const gfx::RectF& bounds, uint32_t color);
void DrawBackgrond(const unsigned char* pixels, size_t pixels_size, const gfx::Rect& bounds);
void DrawBackground(const unsigned char* pixels, size_t pixels_size, const gfx::Rect& bounds);
private:
Renderer(struct carbonyl_renderer* ptr);

View File

@ -34,7 +34,7 @@ void LayeredWindowUpdater::OnAllocatedSharedMemory(
void LayeredWindowUpdater::Draw(const gfx::Rect& damage_rect,
DrawCallback draw_callback) {
Renderer::Main()->DrawBackgrond(
Renderer::Main()->DrawBackground(
shm_mapping_.GetMemoryAs<uint8_t>(),
shm_mapping_.size(),
damage_rect

View File

@ -38,7 +38,7 @@ impl Mouse {
(_, None, _) => self.col = num,
(_, _, None) => self.row = num,
_ => {
log::warning!("Misformed mouse sequence");
log::warning!("Malformed mouse sequence");
return None;
}