[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:
Gliniak
2024-08-31 23:37:21 +02:00
parent 4452e300ac
commit ed843f35f8
6 changed files with 50 additions and 42 deletions

View File

@@ -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_};
};