Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
This commit is contained in:
parent
7dfba3cda9
commit
bc2e8d99e5
62 changed files with 148 additions and 147 deletions
|
|
@ -125,7 +125,7 @@ Error DynamicFontAtSize::_load() {
|
|||
_fontdata[font->font_path] = Vector<uint8_t>();
|
||||
Vector<uint8_t> &fontdata = _fontdata[font->font_path];
|
||||
fontdata.resize(len);
|
||||
f->get_buffer(fontdata.ptr(), len);
|
||||
f->get_buffer(fontdata.ptrw(), len);
|
||||
font->set_font_ptr(fontdata.ptr(), len);
|
||||
f->close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue