mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:35:07 +00:00
More moving towards using signed types.
I'm still feeling this out, but I am starting to like the general idea.
This commit is contained in:
parent
beda478821
commit
9624b54703
48 changed files with 234 additions and 250 deletions
|
@ -227,8 +227,8 @@ void GlyphEditorWidget::draw_at_mouse(const GMouseEvent& event)
|
|||
int x = (event.x() - 1) / m_scale;
|
||||
int y = (event.y() - 1) / m_scale;
|
||||
auto bitmap = font().glyph_bitmap(m_glyph);
|
||||
ASSERT((unsigned)x < bitmap.width());
|
||||
ASSERT((unsigned)y < bitmap.height());
|
||||
ASSERT(x < bitmap.width());
|
||||
ASSERT(y < bitmap.height());
|
||||
if (bitmap.bit_at(x, y) == set)
|
||||
return;
|
||||
bitmap.set_bit_at(x, y, set);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue