png2hgr: full row lookup table for HGR

This commit is contained in:
Vince Weaver 2018-08-24 15:33:29 -04:00
parent 897576bcea
commit d36311e434

View File

@ -247,10 +247,15 @@ static int hgr_offset_table[48]={
static int hgr_offset(int y) {
int temp;
int temp,temp2,address;
temp=y/8;
temp2=y%8;
return hgr_offset_table[temp];
temp2=temp2*0x400;
address=hgr_offset_table[temp]+temp2;
return address;
}
static unsigned char apple2_image[8192];