Prepare for display orientation part 1 (#2661)

This commit is contained in:
Totoo
2025-05-22 17:24:53 +02:00
committed by GitHub
parent 6f6d863a14
commit a1d7cf2b86
85 changed files with 405 additions and 334 deletions
+3 -2
View File
@@ -38,11 +38,12 @@ class PNGWriter {
Optional<File::Error> create(const std::filesystem::path& filename);
void write_scanline(const std::array<ui::ColorRGB888, 240>& scanline);
void write_scanline(const std::vector<ui::ColorRGB888>& scanline);
private:
// TODO: These constants are baked in a few places, do not change blithely.
static constexpr int width{240};
static constexpr int height{320};
int width{ui::screen_width};
int height{ui::screen_height};
File file{};
int scanline_count{0};