Fixed another case of assuming long is 32-bit

This commit is contained in:
Clownacy 2019-02-20 15:08:35 +00:00
parent 55f1d3a9fe
commit 367b41bc88

View file

@ -291,7 +291,7 @@ static bool LoadBitmap(SDL_RWops *fp, Surface_Ids surf_no, bool create_surface)
}
for (int i = 1; i < magnification; ++i)
memcpy(dst_row + i * surf[surf_no].surface->pitch, dst_row, surf[surf_no].surface->w * sizeof(unsigned long));
memcpy(dst_row + i * surf[surf_no].surface->pitch, dst_row, surf[surf_no].surface->w * 4);
}
SDL_FreeSurface(converted_surface);