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

digitall 547637+digitall at users.noreply.github.com
Thu Oct 3 05:45:50 CEST 2019


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:
e97985e887 GRAPHICS: Further Fix for MSVC Warnings in Nine Patch Code


Commit: e97985e88719e734619857dc101646e135d6fd42
    https://github.com/scummvm/scummvm/commit/e97985e88719e734619857dc101646e135d6fd42
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-03T04:42:44+01:00

Commit Message:
GRAPHICS: Further Fix for MSVC Warnings in Nine Patch Code

Changed paths:
    graphics/nine_patch.cpp


diff --git a/graphics/nine_patch.cpp b/graphics/nine_patch.cpp
index 75f3a6e..429247b 100644
--- a/graphics/nine_patch.cpp
+++ b/graphics/nine_patch.cpp
@@ -271,8 +271,6 @@ NinePatchBitmap::~NinePatchBitmap() {
 }
 
 void NinePatchBitmap::drawRegions(Graphics::Surface &target, int dx, int dy, int dw, int dh) {
-	uint color = TS_ARGB(255, 255, 255, 255);
-
 	/* draw each region */
 	for (uint i = 0; i < _v._m.size(); ++i) {
 		for (uint j = 0; j < _h._m.size(); ++j) {
@@ -280,7 +278,7 @@ void NinePatchBitmap::drawRegions(Graphics::Surface &target, int dx, int dy, int
 						_h._m[j]->offset + _h._m[j]->length, _v._m[i]->offset + _v._m[i]->length);
 
 			_bmp->blit(target, dx + _h._m[j]->dest_offset, dy + _v._m[i]->dest_offset,
-					Graphics::FLIP_NONE, &r, color,
+					Graphics::FLIP_NONE, &r, TS_ARGB((uint)255, (uint)255, (uint)255, (uint)255),
 					_h._m[j]->dest_length, _v._m[i]->dest_length);
 		}
 	}
@@ -308,8 +306,6 @@ void NinePatchBitmap::blitClip(Graphics::Surface &target, Common::Rect clip, int
 		_cached_dh = dh;
 	}
 
-	uint color = TS_ARGB(255, 255, 255, 255);
-
 	/* draw each region */
 	for (uint i = 0; i < _v._m.size(); ++i) {
 		for (uint j = 0; j < _h._m.size(); ++j) {
@@ -317,7 +313,7 @@ void NinePatchBitmap::blitClip(Graphics::Surface &target, Common::Rect clip, int
 				_h._m[j]->offset + _h._m[j]->length, _v._m[i]->offset + _v._m[i]->length);
 
 			_bmp->blitClip(target, clip, dx + _h._m[j]->dest_offset, dy + _v._m[i]->dest_offset,
-				Graphics::FLIP_NONE, &r, color,
+				Graphics::FLIP_NONE, &r, TS_ARGB((uint)255, (uint)255, (uint)255, (uint)255),
 				_h._m[j]->dest_length, _v._m[i]->dest_length);
 		}
 	}





More information about the Scummvm-git-logs mailing list