[hvgl] Micro-optimize vector resize

This commit is contained in:
Behdad Esfahbod committed 2025-03-02 17:03:51 -07:00
1 parent 3bb4ee78c1
commit cd269e206a
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ PartShape::get_path_at (const struct hvgl &hvgl,
if (le)
{
// Endianness matches; Faster to memcpy().
v.resize (a.length);
v.resize (a.length, false);
memcpy (v.arrayZ, a.arrayZ, v.length * sizeof (v[0]));
}
else