|
|
| version 1.11, 2004/03/04 17:36:06 | version 1.13, 2004/06/04 13:01:31 |
|---|---|
| Line 5 | Line 5 |
| #include "bios.h" | #include "bios.h" |
| #include "lio.h" | #include "lio.h" |
| #include "vram.h" | #include "vram.h" |
| #include "liofont.res" | |
| typedef struct { | typedef struct { |
| Line 509 REG8 lio_gget(GLIO lio) { | Line 510 REG8 lio_gget(GLIO lio) { |
| if (leng < (size + 4)) { | if (leng < (size + 4)) { |
| return(LIO_ILLEGALFUNC); | return(LIO_ILLEGALFUNC); |
| } | } |
| i286_memword_write(seg, off, (REG16)x2); | MEML_WRITE16(seg, off, (REG16)x2); |
| i286_memword_write(seg, off+2, (REG16)y2); | MEML_WRITE16(seg, off+2, (REG16)y2); |
| off += 4; | off += 4; |
| gt.addr = (x >> 3) + (y * 80); | gt.addr = (x >> 3) + (y * 80); |
| if (lio->draw.flag & LIODRAW_UPPER) { | if (lio->draw.flag & LIODRAW_UPPER) { |
| Line 554 REG8 lio_gput1(GLIO lio) { | Line 555 REG8 lio_gput1(GLIO lio) { |
| lput.seg = LOADINTELWORD(dat.seg); | lput.seg = LOADINTELWORD(dat.seg); |
| lput.mode = dat.mode; | lput.mode = dat.mode; |
| leng = LOADINTELWORD(dat.leng); | leng = LOADINTELWORD(dat.leng); |
| lput.width = i286_memword_read(lput.seg, lput.off - 4); | lput.width = MEML_READ16(lput.seg, lput.off - 4); |
| lput.height = i286_memword_read(lput.seg, lput.off - 2); | lput.height = MEML_READ16(lput.seg, lput.off - 2); |
| size = ((lput.width + 7) >> 3) * lput.height; | size = ((lput.width + 7) >> 3) * lput.height; |
| if (leng < (size + 4)) { | if (leng < (size + 4)) { |
| return(LIO_ILLEGALFUNC); | return(LIO_ILLEGALFUNC); |