Declare locally used function static

This commit is contained in:
Gunter Labes 2024-07-28 22:09:13 +02:00
parent 5c3188581b
commit 1f6c935fe1
No known key found for this signature in database
GPG key ID: C0C7B971CC910216

View file

@ -61,7 +61,7 @@ surface array_to_surface(const std::array<uint32_t, w * h>& arr)
return surf;
}
std::vector<uint32_t> surface_to_vec(const surface& surf)
static std::vector<uint32_t> surface_to_vec(const surface& surf)
{
const_surface_lock lock{surf};
const uint32_t* const pixels = lock.pixels();