| 105 | |
| 106 | private: |
| 107 | void setPixel(int16_t x, int16_t y, Color color) { |
| 108 | ASSERT_GE(x, 0); |
| 109 | ASSERT_GE(y, 0); |
| 110 | if (orientation_.isXYswapped()) { |
| 111 | std::swap(x, y); |
| 112 | } |
| 113 | ASSERT_LT(x, width()); |
| 114 | ASSERT_LT(y, height()); |
| 115 | if (orientation_.isRightToLeft()) x = width() - x - 1; |
| 116 | if (orientation_.isBottomToTop()) y = height() - y - 1; |
| 117 | data_[x + y * width()] = color; |
| 118 | } |
| 119 | |
| 120 | int16_t width_, height_; |
| 121 | std::unique_ptr<Color[]> data_; |
nothing calls this directly
no test coverage detected