diff options
Diffstat (limited to 'src/mame/video/mac.cpp')
-rw-r--r-- | src/mame/video/mac.cpp | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/src/mame/video/mac.cpp b/src/mame/video/mac.cpp index 5883d7f102d..ccf6bcfc245 100644 --- a/src/mame/video/mac.cpp +++ b/src/mame/video/mac.cpp @@ -226,7 +226,6 @@ VIDEO_RESET_MEMBER(mac_state,maceagle) VIDEO_RESET_MEMBER(mac_state,macrbv) { - rectangle visarea; int htotal, vtotal; double framerate; int view; @@ -242,16 +241,14 @@ VIDEO_RESET_MEMBER(mac_state,macrbv) m_rbv_type = RBV_TYPE_RBV; - visarea.min_x = 0; - visarea.min_y = 0; view = 0; m_rbv_montype = m_montype.read_safe(2); + rectangle visarea; switch (m_rbv_montype) { case 1: // 15" portrait display - visarea.max_x = 640-1; - visarea.max_y = 870-1; + visarea.set(0, 640-1, 0, 870-1); htotal = 832; vtotal = 918; framerate = 75.0; @@ -259,8 +256,7 @@ VIDEO_RESET_MEMBER(mac_state,macrbv) break; case 2: // 12" RGB - visarea.max_x = 512-1; - visarea.max_y = 384-1; + visarea.set(0, 512-1, 0, 384-1); htotal = 640; vtotal = 407; framerate = 60.15; @@ -268,15 +264,14 @@ VIDEO_RESET_MEMBER(mac_state,macrbv) case 6: // 13" RGB default: - visarea.max_x = 640-1; - visarea.max_y = 480-1; + visarea.set(0, 640-1, 0, 480-1); htotal = 800; vtotal = 525; framerate = 59.94; break; } -// printf("RBV reset: monitor is %dx%d @ %f Hz\n", visarea.max_x+1, visarea.max_y+1, framerate); +// logerror("RBV reset: monitor is %dx%d @ %f Hz\n", visarea.width(), visarea.height(), framerate); m_screen->configure(htotal, vtotal, visarea, HZ_TO_ATTOSECONDS(framerate)); render_target *target = machine().render().first_target(); target->set_view(view); @@ -284,7 +279,6 @@ VIDEO_RESET_MEMBER(mac_state,macrbv) VIDEO_RESET_MEMBER(mac_state,macsonora) { - rectangle visarea; int htotal, vtotal; double framerate; int view = 0; @@ -300,15 +294,12 @@ VIDEO_RESET_MEMBER(mac_state,macsonora) m_rbv_type = RBV_TYPE_SONORA; - visarea.min_x = 0; - visarea.min_y = 0; - m_rbv_montype = m_montype.read_safe(2); + rectangle visarea; switch (m_rbv_montype) { case 1: // 15" portrait display - visarea.max_x = 640-1; - visarea.max_y = 870-1; + visarea.set(0, 640-1, 0, 870-1); htotal = 832; vtotal = 918; framerate = 75.0; @@ -316,8 +307,7 @@ VIDEO_RESET_MEMBER(mac_state,macsonora) break; case 2: // 12" RGB - visarea.max_x = 512-1; - visarea.max_y = 384-1; + visarea.set(0, 512-1, 0, 384-1); htotal = 640; vtotal = 407; framerate = 60.15; @@ -325,15 +315,14 @@ VIDEO_RESET_MEMBER(mac_state,macsonora) case 6: // 13" RGB default: - visarea.max_x = 640-1; - visarea.max_y = 480-1; + visarea.set(0, 640-1, 0, 480-1); htotal = 800; vtotal = 525; framerate = 59.94; break; } -// printf("Sonora reset: monitor is %dx%d @ %f Hz\n", visarea.max_x+1, visarea.max_y+1, framerate); +// logerror("Sonora reset: monitor is %dx%d @ %f Hz\n", visarea.width(), visarea.height(), framerate); m_screen->configure(htotal, vtotal, visarea, HZ_TO_ATTOSECONDS(framerate)); render_target *target = machine().render().first_target(); target->set_view(view); |