Added Toshiba T3100e emulation. Patch from John Elliott.
This commit is contained in:
parent
c28490cc2f
commit
5d5fa1402a
21 changed files with 1277 additions and 26 deletions
18
src/video.c
18
src/video.c
|
|
@ -41,6 +41,7 @@
|
|||
#include "vid_tvga.h"
|
||||
#include "vid_vga.h"
|
||||
#include "vid_wy700.h"
|
||||
#include "vid_t3100e.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
@ -311,6 +312,10 @@ void video_init()
|
|||
case ROM_IBMPS1_2121:
|
||||
device_add(&ps1_m2121_svga_device);
|
||||
return;
|
||||
|
||||
case ROM_T3100E:
|
||||
device_add(&t3100e_device);
|
||||
return;
|
||||
}
|
||||
device_add(video_cards[video_old_to_new(gfxcard)].device);
|
||||
}
|
||||
|
|
@ -319,7 +324,7 @@ void video_init()
|
|||
BITMAP *buffer32;
|
||||
|
||||
uint8_t fontdat[256][8];
|
||||
uint8_t fontdatm[256][16];
|
||||
uint8_t fontdatm[512][16];
|
||||
uint8_t fontdatw[512][32]; /* Wyse700 font */
|
||||
uint8_t fontdat8x12[256][16]; /* MDSI Genius font */
|
||||
|
||||
|
|
@ -329,6 +334,8 @@ void loadfont(char *s, int format)
|
|||
{
|
||||
FILE *f=romfopen(s,"rb");
|
||||
int c,d;
|
||||
|
||||
pclog("loadfont %i %s %p\n", format, s, f);
|
||||
if (!f)
|
||||
{
|
||||
return;
|
||||
|
|
@ -412,6 +419,15 @@ void loadfont(char *s, int format)
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 5: /* Toshiba 3100e */
|
||||
for (c=0;c<512;c++)
|
||||
{
|
||||
for (d=0;d<16;d++)
|
||||
{
|
||||
fontdatm[c][d]=getc(f);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
fclose(f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue