shithub: pt2-clone

Download patch

ref: 56d64017c95d7f47d4b223ff232b004064770df5
parent: 4f4c60b34d48ac94175de4939c2fe07e73c348c5
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Jul 12 08:36:07 EDT 2023

Fix case-sensitivity for VIDEOSCALE entry in protracker.ini

--- a/src/pt2_config.c
+++ b/src/pt2_config.c
@@ -355,7 +355,7 @@
 				config.autoFitVideoScale = true;
 				config.videoScaleFactor = 0; // will be set later
 			}
-			else if (lineLen >= 13 && configLine[12] == 'X' && isdigit(configLine[11]))
+			else if (lineLen >= 13 && toupper(configLine[12]) == 'X' && isdigit(configLine[11]))
 			{
 				config.autoFitVideoScale = false;
 				config.videoScaleFactor = (int8_t)(configLine[11] - '0');