From 0653b9ec119e01dccffaa532aee54835e1d38a74 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sun, 8 Feb 2009 21:42:16 +0000 Subject: [PATCH] winport: - fix Intel C++ project; --- desmume/src/rasterize.cpp | 12 +++++----- desmume/src/windows/DeSmuME_Intel.icproj | 22 ++++++++++------- desmume/src/windows/DeSmuME_Intel.vcproj | 30 +++++++++++++++++------- 3 files changed, 41 insertions(+), 23 deletions(-) diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index bf9e99ab4..af18e92ec 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -40,8 +40,8 @@ using std::min; using std::max; -template T min(T a, T b, T c) { return min(min(a,b),c); } -template T max(T a, T b, T c) { return max(max(a,b),c); } +template T _min(T a, T b, T c) { return min(min(a,b),c); } +template T _max(T a, T b, T c) { return max(max(a,b),c); } static int polynum; @@ -403,10 +403,10 @@ static void triangle_from_devmaster() const int FDY31 = DY31 << 4; // Bounding rectangle - int minx = (min(X1, X2, X3) + 0xF) >> 4; - int maxx = (max(X1, X2, X3) + 0xF) >> 4; - int miny = (min(Y1, Y2, Y3) + 0xF) >> 4; - int maxy = (max(Y1, Y2, Y3) + 0xF) >> 4; + int minx = (_min(X1, X2, X3) + 0xF) >> 4; + int maxx = (_max(X1, X2, X3) + 0xF) >> 4; + int miny = (_min(Y1, Y2, Y3) + 0xF) >> 4; + int maxy = (_max(Y1, Y2, Y3) + 0xF) >> 4; int desty = miny; diff --git a/desmume/src/windows/DeSmuME_Intel.icproj b/desmume/src/windows/DeSmuME_Intel.icproj index c0e6c68a7..1db8d4b5f 100644 --- a/desmume/src/windows/DeSmuME_Intel.icproj +++ b/desmume/src/windows/DeSmuME_Intel.icproj @@ -5,7 +5,7 @@ Name="DeSmuME_Intel" ProjectGUID="{3DA70B4E-4FE0-428C-9084-F6CE33810F6B}" VCNestedProjectGUID="{9F5F72A1-D3A5-4918-B460-E076B16D10A9}" - VCNestedProjectCRC32="2631812102" + VCNestedProjectCRC32="2055535478" VCNestedProjectFileName="DeSmuME_Intel.vcproj"> + + - + + + + @@ -580,6 +584,10 @@ RelativePath="..\SPU.cpp" > + + @@ -973,10 +981,6 @@ RelativePath="..\instruction_tabdef.inc" > - - @@ -1188,6 +1192,10 @@ RelativePath="..\OGLRender.h" > + + @@ -1224,6 +1232,10 @@ RelativePath="..\SPU.h" > + +