Proper 4:3 support
This commit is contained in:
committed by
Radosław Gliński
parent
49166f0bd1
commit
c4e930ed4c
@@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user