aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/win
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-25 20:01:20 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-25 20:01:20 +0000
commit47fad70da32b8654c6e37aed27815f16bcc5e2f9 (patch)
tree9a8a925092f5915e02b12df0832d92a89114a246 /src/utils/win
parent48b8891194e4abab68c3b233b876a5710a41ecc3 (diff)
R=borenet@google.com, bungeman@google.com, robertphillips@google.com
Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/19862002 git-svn-id: http://skia.googlecode.com/svn/trunk@10372 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/win')
-rw-r--r--src/utils/win/SkWGL_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/win/SkWGL_win.cpp b/src/utils/win/SkWGL_win.cpp
index f20262b818..4b3b3e63ae 100644
--- a/src/utils/win/SkWGL_win.cpp
+++ b/src/utils/win/SkWGL_win.cpp
@@ -312,7 +312,7 @@ HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile) {
unsigned int num;
int formats[64];
extensions.choosePixelFormat(dc, msaaIAttrs, fAttrs, 64, formats, &num);
- num = min(num,64);
+ num = SkTMin(num, 64U);
int formatToTry = extensions.selectFormat(formats,
num,
dc,