OSDN Git Service

マクロ名が間違っていたので訂正。
authorMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Thu, 27 Feb 2014 23:13:28 +0000 (08:13 +0900)
committerMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Thu, 27 Feb 2014 23:13:28 +0000 (08:13 +0900)
GVONavish/GVONavish/GVORenderer.cpp
GVONavish/GVONavish/stdafx.h

index a816082..2051ff1 100644 (file)
@@ -99,7 +99,7 @@ void GVORenderer::offsetFocusInViewCoord( const POINT& offset )
 
        LONG x = m_focusPointInWorldCoord.x + LONG( dx * k_worldWidth );
        LONG y = m_focusPointInWorldCoord.y + LONG( dy * k_worldHeight );
-       y = max( 0, min( y, k_worldHeight ) );
+       y = std::max<LONG>( 0, std::min<LONG>( y, k_worldHeight ) );
        while ( x < 0 ) {
                x += k_worldWidth;
        }
index 54624a9..9d9b75d 100644 (file)
@@ -12,7 +12,7 @@
 #define _SECURE_SCL 0
 #endif
 #define WIN32_LEAN_AND_MEAN             // Windows \83w\83b\83_\81[\82©\82ç\8eg\97p\82³\82ê\82Ä\82¢\82È\82¢\95\94\95ª\82ð\8f\9c\8aO\82µ\82Ü\82·\81B
-#define _NO_MIN_MAX
+#define NOMINMAX
 #include <algorithm>
 using std::min;
 using std::max;