summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui.c
diff options
context:
space:
mode:
author Wilbert Pol <wilbert@jdg.info>2008-09-25 10:02:46 +0000
committer Wilbert Pol <wilbert@jdg.info>2008-09-25 10:02:46 +0000
commite4dc04a323f064827f58eb6774299ed32ca9ecf0 (patch)
treecfe94d846d1cc938a756fb64e7e61c9d070ade98 /src/emu/ui.c
parent45c7d1a094579abd5761980bee4161d158913bf6 (diff)
rescale_notifier() changed to always allow rescaling for screenless drivers.
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r--src/emu/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c
index 8493699fca2..ba289e82a64 100644
--- a/src/emu/ui.c
+++ b/src/emu/ui.c
@@ -262,8 +262,8 @@ static void ui_exit(running_machine *machine)
static int rescale_notifier(running_machine *machine, int width, int height)
{
- /* always allow "small" rescaling */
- if (width < 500 || height < 500)
+ /* always allow rescaling for a "small" area and for screenless drivers */
+ if (width < 500 || height < 500 || machine->primary_screen == NULL)
return TRUE;
/* if we've currently disallowed rescaling, turn on a message next frame */