From 5e85c03c0adfd65c19f9796a9592e81eda3a5c9d Mon Sep 17 00:00:00 2001 From: twilen Date: Wed, 4 Jul 2012 08:59:46 +0000 Subject: [PATCH] Set default monitor modeid if monitor not set and mode was not found. Workaround for programs that use SA_DisplayID without monitor type. (We really need proper mode promotion support someday) git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@45157 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/intuition/openscreen.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rom/intuition/openscreen.c b/rom/intuition/openscreen.c index 802ac8d193..20db9bbd78 100644 --- a/rom/intuition/openscreen.c +++ b/rom/intuition/openscreen.c @@ -625,12 +625,20 @@ extern const ULONG defaultdricolors[DRIPEN_NUMDRIPENS]; default: break; } +#ifdef __mc68000 + /* Got OpenScreenTags modeid without monitor, select system default. + * We really need proper mode promotion support. + */ + if ((modeid & MONITOR_ID_MASK) == 0) { + modeid |= (GfxBase->DisplayFlags & PAL) ? PAL_MONITOR_ID : NTSC_MONITOR_ID; + } +#endif } } if (INVALID_ID == modeid) { - /* HAM or EHB requested? */ + /* Old-style HAM or EHB request? */ if (newScreen->ViewModes & (HAM | EXTRA_HALFBRITE)) { if (newScreen->ViewModes & HAM) modetags[3].ti_Data |= DIPF_IS_HAM; -- 2.11.4.GIT