[GPU] Added janky(?) support for register: D1MODE_V_COUNTER
Put internal_display_resolution into graphics_system Thanks Beeanyew for initial implementation
This commit is contained in:
@@ -34,6 +34,13 @@ class Emulator;
|
||||
namespace xe {
|
||||
namespace gpu {
|
||||
|
||||
static const std::vector<std::pair<uint16_t, uint16_t>>
|
||||
internal_display_resolution_entries = {
|
||||
{640, 480}, {640, 576}, {720, 480}, {720, 576}, {800, 600},
|
||||
{848, 480}, {1024, 768}, {1152, 864}, {1280, 720}, {1280, 768},
|
||||
{1280, 960}, {1280, 1024}, {1360, 768}, {1440, 900}, {1680, 1050},
|
||||
{1920, 540}, {1920, 1080}};
|
||||
|
||||
class CommandProcessor;
|
||||
|
||||
class GraphicsSystem {
|
||||
@@ -86,6 +93,8 @@ class GraphicsSystem {
|
||||
bool Save(ByteStream* stream);
|
||||
bool Restore(ByteStream* stream);
|
||||
|
||||
static std::pair<uint16_t, uint16_t> GetInternalDisplayResolution();
|
||||
|
||||
std::pair<uint32_t, uint32_t> GetScaledAspectRatio() const {
|
||||
return {scaled_aspect_x_, scaled_aspect_y_};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user