Proper 4:3 support

This commit is contained in:
NicknineTheEagle
2024-06-28 21:27:44 +03:00
committed by Radosław Gliński
parent 49166f0bd1
commit c4e930ed4c
8 changed files with 105 additions and 12 deletions

View File

@@ -86,6 +86,14 @@ class GraphicsSystem {
bool Save(ByteStream* stream);
bool Restore(ByteStream* stream);
std::pair<uint32_t, uint32_t> GetScaledAspectRatio() const {
return {scaled_aspect_x_, scaled_aspect_y_};
};
void SetScaledAspectRatio(uint32_t x, uint32_t y) {
scaled_aspect_x_ = x;
scaled_aspect_y_ = y;
};
protected:
GraphicsSystem();
@@ -117,6 +125,9 @@ class GraphicsSystem {
bool paused_ = false;
uint32_t scaled_aspect_x_ = 0;
uint32_t scaled_aspect_y_ = 0;
private:
std::unique_ptr<ui::Presenter> presenter_;