=== modified file 'src/canvas.h'
@@ -76,7 +76,7 @@
}
int width() { return mWidth; }
- int height() { return mWidth; }
+ int height() { return mHeight; }
const LibMatrix::mat4 &projection() { return mProjection; }
protected:
=== modified file 'src/scene-build.cpp'
@@ -182,7 +182,7 @@
if (mRotation != 0)
return Scene::ValidationUnknown;
- Canvas::Pixel ref(0xcf, 0xcf, 0xcf, 0xff);
+ Canvas::Pixel ref(0xa7, 0xa7, 0xa7, 0xff);
Canvas::Pixel pixel = mCanvas.read_pixel(mCanvas.width() / 2,
mCanvas.height() / 2);
=== modified file 'src/scene-shading.cpp'
@@ -198,9 +198,9 @@
const std::string &filter = mOptions["shading"].value;
if (filter == "gouraud")
- ref = Canvas::Pixel(0x00, 0x00, 0x76, 0xff);
+ ref = Canvas::Pixel(0x00, 0x00, 0x2d, 0xff);
else if (filter == "phong")
- ref = Canvas::Pixel(0x1a, 0x1a, 0x79, 0xff);
+ ref = Canvas::Pixel(0x1a, 0x1a, 0x3e, 0xff);
else
return Scene::ValidationUnknown;
=== modified file 'src/scene-texture.cpp'
@@ -188,17 +188,17 @@
Canvas::Pixel ref;
- Canvas::Pixel pixel = mCanvas.read_pixel(mCanvas.width() / 2 - 3,
- mCanvas.height() / 2 - 3);
+ Canvas::Pixel pixel = mCanvas.read_pixel(mCanvas.width() / 2 + 3,
+ mCanvas.height() / 2 + 3);
const std::string &filter = mOptions["texture-filter"].value;
if (filter == "nearest")
- ref = Canvas::Pixel(0x24, 0x22, 0x23, 0xff);
+ ref = Canvas::Pixel(0x3b, 0x3a, 0x39, 0xff);
else if (filter == "linear")
- ref = Canvas::Pixel(0x29, 0x27, 0x28, 0xff);
+ ref = Canvas::Pixel(0x36, 0x36, 0x34, 0xff);
else if (filter == "mipmap")
- ref = Canvas::Pixel(0x2c, 0x2a, 0x2b, 0xff);
+ ref = Canvas::Pixel(0x35, 0x35, 0x34, 0xff);
else
return Scene::ValidationUnknown;