summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEero Tamminen <oak@helsinkinet.fi>2018-08-05 09:36:07 (GMT)
committerEero Tamminen <oak@helsinkinet.fi>2018-08-05 09:36:07 (GMT)
commited35ac4a09d2ee434bb0625f31f78d56636d8066 (patch)
treeb5d0be1ba4d44a7de60a9f8d53dd32eef744e17d
parent2531a46ed0c91e780383417e683a4e65e844af92 (diff)
downloadhatari-ed35ac4a09d2ee434bb0625f31f78d56636d8066.zip
hatari-ed35ac4a09d2ee434bb0625f31f78d56636d8066.tar.gz
Fix: INF file overriding is enabled even when VDI mode isn't used
This cased booting from hard disk image not to read the INF file regardless of whether VDI mode was overridden (even on Falcon mode where the VDI mode doesn't work). This is quick-fix. More changes are needed to fix things properly for all possible cases.
-rw-r--r--src/vdi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vdi.c b/src/vdi.c
index 910b5fd..d51232c 100644
--- a/src/vdi.c
+++ b/src/vdi.c
@@ -146,8 +146,11 @@ void VDI_SetResolution(int GEMColor, int WidthRequest, int HeightRequest)
Log_Printf(LOG_DEBUG, "VDI screen: %dx%d@%d\n",
VDIWidth, VDIHeight, VDIPlanes);
}
- /* INF file overriding so that (re-)boot uses correct bit-depth */
- INF_SetVdiMode(VDIRes);
+ if (bUseVDIRes)
+ {
+ /* INF file overriding so that (re-)boot uses correct bit-depth */
+ INF_SetVdiMode(VDIRes);
+ }
}