Commit 1c812354 authored by kraus's avatar kraus
Browse files

fix orientation of mask

parent 45aaa9d3
...@@ -621,8 +621,8 @@ namespace mslang { ...@@ -621,8 +621,8 @@ namespace mslang {
Rectangle rect; Rectangle rect;
rect.width_m = pixel_width; rect.width_m = pixel_width;
rect.height_m = pixel_height; rect.height_m = pixel_height;
rect.trafo_m = AffineTransformation(Vector_t(1, 0, (j - 0.5 * width) * pixel_width), rect.trafo_m = AffineTransformation(Vector_t(1, 0, (0.5 * width - j) * pixel_width),
Vector_t(0, 1, (0.5 * height - i) * pixel_height)); Vector_t(0, 1, (i - 0.5 * height) * pixel_height));
// rect.computeBoundingBox(); // rect.computeBoundingBox();
pixmap->pixels_m.push_back(rect); pixmap->pixels_m.push_back(rect);
pixmap->pixels_m.back().computeBoundingBox(); pixmap->pixels_m.back().computeBoundingBox();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment