Chromium Code Reviews| Index: src/utils/win/SkWGL_win.cpp |
| diff --git a/src/utils/win/SkWGL_win.cpp b/src/utils/win/SkWGL_win.cpp |
| index f20262b81840eba6b7416872eca6c44194bd3cf2..4b3b3e63aedd98fc118ae800d23b127cc71d9a3b 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); |
|
scroggo
2013/07/30 19:12:34
This seems like an unrelated change?
bsalomon
2013/07/31 15:21:39
moved all the minmax stuff to another cl
|
| int formatToTry = extensions.selectFormat(formats, |
| num, |
| dc, |