-BMP Loading

-Fixed PCX loading
-Some work on ILBM loading
-Little adaptation for long filenames (does not crash anymore, but there are display bugs)
-Some other small fixes i can't remember


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@123 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-08-14 20:21:11 +00:00
parent fce305c1eb
commit 2b609d6e03
4 changed files with 91 additions and 58 deletions

View File

@@ -625,10 +625,10 @@ byte Couleur_ILBM_line(word Pos_X, word Vraie_taille_ligne)
int ax,bh,dx;
byte bl=0;
for(dx = HBPm1;dx>=0;dx--);
for(dx = HBPm1;dx>0;dx--);
{
//CIL_Loop
ax = (Vraie_taille_ligne * HBPm1 + Pos_X) >> 3;
ax = (Vraie_taille_ligne * dx + Pos_X) >> 3;
bh = (LBM_Buffer[ax] >> cl) & 1;
bl = (bl << 1) + bh;