| 118 | } |
| 119 | |
| 120 | void UnsafeDrawVerticalLine(const Surface &out, Point from, int height, std::uint8_t colorIndex) |
| 121 | { |
| 122 | auto *dst = &out[from]; |
| 123 | const auto pitch = out.pitch(); |
| 124 | while (height-- > 0) { |
| 125 | *dst = colorIndex; |
| 126 | dst += pitch; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void DrawHalfTransparentHorizontalLine(const Surface &out, Point from, int width, uint8_t colorIndex) |
| 131 | { |
no test coverage detected