mirror of
https://github.com/fathyb/carbonyl.git
synced 2025-01-09 04:07:32 +08:00
chore: fix typos (#83)
This commit is contained in:
parent
1d62f24270
commit
5b1ca94646
@ -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
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user