mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-28 06:30:18 +00:00
png2hgr: full row lookup table for HGR
This commit is contained in:
parent
897576bcea
commit
d36311e434
@ -247,10 +247,15 @@ static int hgr_offset_table[48]={
|
|||||||
|
|
||||||
static int hgr_offset(int y) {
|
static int hgr_offset(int y) {
|
||||||
|
|
||||||
int temp;
|
int temp,temp2,address;
|
||||||
temp=y/8;
|
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];
|
static unsigned char apple2_image[8192];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user