Fixed an incompatibilty with gfx2.cfg from DOS version.

Fixed the invalid shades in the current version of gfx2.cfg : Somehow it was filled with multiple occurences of color 0(black), with a step of 0.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@198 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2008-10-04 23:47:53 +00:00
parent 7c1ecd4bb5
commit 0705aae104
2 changed files with 1 additions and 1 deletions

BIN
gfx2.cfg

Binary file not shown.

2
init.c
View File

@ -1781,7 +1781,7 @@ int Charger_CFG(int Tout_charger)
}
break;
case CHUNK_MODES_VIDEO: // Modes vidéo
for (Indice=1; Indice<=NB_MODES_VIDEO; Indice++)
for (Indice=0; Indice<(Chunk.Taille/sizeof(CFG_Mode_video)); Indice++)
{
if (!read_byte(Handle, &CFG_Mode_video.Etat) ||
!read_word_le(Handle, &CFG_Mode_video.Largeur) ||