[Scummvm-git-logs] scummvm master -> d69db0c54f2a4b1b4572ea9b9f504b7266d02fcf

bluegr bluegr at gmail.com
Thu Mar 25 06:17:57 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d69db0c54f GRAPHICS: Remove deprecated register keyword


Commit: d69db0c54f2a4b1b4572ea9b9f504b7266d02fcf
    https://github.com/scummvm/scummvm/commit/d69db0c54f2a4b1b4572ea9b9f504b7266d02fcf
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-03-25T08:17:55+02:00

Commit Message:
GRAPHICS: Remove deprecated register keyword

Changed paths:
    graphics/scaler/sai.cpp


diff --git a/graphics/scaler/sai.cpp b/graphics/scaler/sai.cpp
index cccb4501f2..a3b881422b 100644
--- a/graphics/scaler/sai.cpp
+++ b/graphics/scaler/sai.cpp
@@ -92,7 +92,7 @@ void Super2xSaITemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uin
 			} else if (color5 == color3 && color2 != color6) {
 				product2b = product1b = color5;
 			} else if (color5 == color3 && color2 == color6) {
-				register int r = 0;
+				int r = 0;
 
 				r += GetResult(color6, color5, color1, colorA1);
 				r += GetResult(color6, color5, color4, colorB1);
@@ -221,7 +221,7 @@ void SuperEagleTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uin
 						product2a = interpolate_1_1(color2, color3);
 					}
 				} else {
-					register int r = 0;
+					int r = 0;
 
 					r += GetResult(color6, color5, color1, colorA1);
 					r += GetResult(color6, color5, color4, colorB1);
@@ -269,7 +269,7 @@ void _2xSaITemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32
 
 		for (int i = 0; i < width; ++i) {
 
-			register unsigned colorA, colorB;
+			unsigned colorA, colorB;
 			unsigned colorC, colorD,
 				colorE, colorF, colorG, colorH, colorI, colorJ, colorK, colorL, colorM, colorN, colorO;
 			unsigned product, product1, product2;
@@ -334,7 +334,7 @@ void _2xSaITemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32
 					product1 = colorA;
 					product2 = colorA;
 				} else {
-					register int r = 0;
+					int r = 0;
 
 					product1 = interpolate_1_1(colorA, colorC);
 					product = interpolate_1_1(colorA, colorB);




More information about the Scummvm-git-logs mailing list