shithub: cstory

Download patch

ref: 08d9ca4ad8fe0d274e900545d1b26fd1cab4902e
parent: c387c31d0457330867c026ab81d8c69eeb11eab7
author: cuckydev <cuckydev@users.noreply.github.com>
date: Tue Feb 12 16:28:44 EST 2019

fix???

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -234,7 +234,7 @@
 			{
 				if (create_surface == false || MakeSurface_Generic(surface->w, surface->h, surf_no))
 				{
-					if (gWindowScale == 1)
+					if (magnification == 1)
 					{
 						SDL_Rect dst_rect = {0, 0, surface->w, surface->h};
 						SDL_BlitSurface(surface, NULL, surf[surf_no].surface, &dst_rect);
@@ -260,18 +260,18 @@
 							for (int h = 0; h < converted_surface->h; ++h)
 							{
 								const unsigned long *src_row = (unsigned long*)src_pixels[h];
-								unsigned long *dst_row = (unsigned long*)dst_pixels[h * gWindowScale];
+								unsigned long *dst_row = (unsigned long*)dst_pixels[h * magnification];
 
 								for (int w = 0; w < converted_surface->w; ++w)
 								{
 									const unsigned long src_pixel = *src_row++;
 
-									for (int i = 0; i < gWindowScale; ++i)
+									for (int i = 0; i < magnification; ++i)
 										*dst_row++ = src_pixel;
 								}
 
-								for (int i = 1; i < gWindowScale; ++i)
-									memcpy(dst_pixels[(h * gWindowScale) + i], dst_pixels[h * gWindowScale], surf[surf_no].surface->w * sizeof(unsigned long));
+								for (int i = 1; i < magnification; ++i)
+									memcpy(dst_pixels[(h * magnification) + i], dst_pixels[h * magnification], surf[surf_no].surface->w * sizeof(unsigned long));
 							}
 
 							SDL_FreeSurface(converted_surface);
--