Fix for compiler warnings/errors in r9078

git-svn-id: http://skia.googlecode.com/svn/trunk@9079 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-05-09 19:08:57 +00:00
parent 6670ab9e63
commit 6d58ad3a82

View File

@ -170,18 +170,18 @@ private:
// Note: the resulting checker board has transparency
void makeCheckerboard() {
static unsigned int kCheckSize = 16;
static int kCheckSize = 16;
fCheckerboard.setConfig(SkBitmap::kARGB_8888_Config,
kCheckerboardWidth, kCheckerboardHeight);
fCheckerboard.allocPixels();
SkAutoLockPixels lock(fCheckerboard);
for (unsigned int y = 0; y < kCheckerboardHeight; ++y) {
for (int y = 0; y < kCheckerboardHeight; ++y) {
int even = (y / kCheckSize) % 2;
SkPMColor* scanline = fCheckerboard.getAddr32(0, y);
for (unsigned int x = 0; x < kCheckerboardWidth; ++x) {
for (int x = 0; x < kCheckerboardWidth; ++x) {
if (even == (x / kCheckSize) % 2) {
*scanline++ = 0xFFFF0000;
} else {