| 19 | static constexpr ByteOrder byte_order = byte_order_p; |
| 20 | |
| 21 | TestTarget(int16_t width, int16_t height, Color bg) |
| 22 | : width_(width), |
| 23 | height_(height), |
| 24 | data_(new Color[width * height]), |
| 25 | orientation_(Orientation::Default()), |
| 26 | xMin_(-1), |
| 27 | yMin_(-1), |
| 28 | xMax_(-1), |
| 29 | yMax_(-1), |
| 30 | xCursor_(-1), |
| 31 | yCursor_(-1), |
| 32 | initialized_(false), |
| 33 | inTransaction_(false), |
| 34 | inRamWrite_(false), |
| 35 | flushed_(true) { |
| 36 | ColorMode mode; |
| 37 | bg = mode.toArgbColor(mode.fromArgbColor(bg)); |
| 38 | std::fill(&data_[0], &data_[width * height], bg); |
| 39 | } |
| 40 | |
| 41 | int16_t width() const { return width_; } |
| 42 | int16_t height() const { return height_; } |
nothing calls this directly
no test coverage detected