shithub: cstory

Download patch

ref: 367b41bc88478aa31bae08b7e8dd428e0689e261
parent: 55f1d3a9fe1cfc4fef111fcef5cb8bde8acc8d5f
author: Clownacy <[email protected]>
date: Wed Feb 20 10:08:35 EST 2019

Fixed another case of assuming long is 32-bit

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -291,7 +291,7 @@
 								}
 
 								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);