summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/render.c2
-rw-r--r--src/emu/rendlay.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/render.c b/src/emu/render.c
index 9f3f69604aa..527b20250a5 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -1411,7 +1411,7 @@ void render_target_compute_visible_area(render_target *target, INT32 target_widt
if (target_pixel_aspect != 0.0f)
{
/* start with the aspect ratio of the square pixel layout */
- width = (target->layerconfig & LAYER_CONFIG_ZOOM_TO_SCREEN) ? target->curview->scraspect : target->curview->aspect;
+ width = ((target->layerconfig & LAYER_CONFIG_ZOOM_TO_SCREEN) && target->curview->screens > 0) ? target->curview->scraspect : target->curview->aspect;
height = 1.0f;
/* first apply target orientation */
diff --git a/src/emu/rendlay.c b/src/emu/rendlay.c
index 79a46c5a9c0..ebc83d03d11 100644
--- a/src/emu/rendlay.c
+++ b/src/emu/rendlay.c
@@ -293,7 +293,7 @@ void layout_view_recompute(layout_view *view, int layerconfig)
view->scraspect = (view->scrbounds.x1 - view->scrbounds.x0) / (view->scrbounds.y1 - view->scrbounds.y0);
/* if we're handling things normally, the target bounds are (0,0)-(1,1) */
- if (!(layerconfig & LAYER_CONFIG_ZOOM_TO_SCREEN))
+ if (!(layerconfig & LAYER_CONFIG_ZOOM_TO_SCREEN) || view->screens == 0)
{
target_bounds.x0 = target_bounds.y0 = 0.0f;
target_bounds.x1 = target_bounds.y1 = 1.0f;