mirror of
https://github.com/holub/mame
synced 2025-04-29 11:30:28 +03:00
Added Font select
This commit is contained in:
parent
53df775c79
commit
9094bbbe42
@ -35,7 +35,7 @@
|
|||||||
List of per-game TODO:
|
List of per-game TODO:
|
||||||
- 4D Boxing: tries to format User Disk;
|
- 4D Boxing: tries to format User Disk;
|
||||||
- Absolutely Mahjong: Epson splash screen doesn't appear at all, why?
|
- Absolutely Mahjong: Epson splash screen doesn't appear at all, why?
|
||||||
- Dragon Buster: has lots of gfx artifacts;
|
- Dragon Buster: missing bitplanes for the PCG, slight issue with window masking;
|
||||||
- Far Side Moon: doesn't detect neither mouse nor sound board;
|
- Far Side Moon: doesn't detect neither mouse nor sound board;
|
||||||
- First Queen: has broken text display;
|
- First Queen: has broken text display;
|
||||||
- Flappy Plus: keyboard is unresponsive;
|
- Flappy Plus: keyboard is unresponsive;
|
||||||
@ -542,6 +542,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
#define WIDTH40_REG 2
|
#define WIDTH40_REG 2
|
||||||
|
#define FONTSEL_REG 3
|
||||||
#define INTERLACE_REG 4
|
#define INTERLACE_REG 4
|
||||||
#define MEMSW_REG 6
|
#define MEMSW_REG 6
|
||||||
#define DISPLAY_REG 7
|
#define DISPLAY_REG 7
|
||||||
@ -625,7 +626,7 @@ static UPD7220_DRAW_TEXT_LINE( hgdc_draw_text )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
interlace_on = state->m_video_ff[INTERLACE_REG];
|
interlace_on = state->m_video_ff[INTERLACE_REG];
|
||||||
char_size = (interlace_on) ? 16 : 8;
|
char_size = state->m_video_ff[FONTSEL_REG] ? 16 : 8;
|
||||||
tile = 0;
|
tile = 0;
|
||||||
|
|
||||||
for(x=0;x<pitch;x++)
|
for(x=0;x<pitch;x++)
|
||||||
@ -662,7 +663,7 @@ static UPD7220_DRAW_TEXT_LINE( hgdc_draw_text )
|
|||||||
// tile&=0x7fff;
|
// tile&=0x7fff;
|
||||||
kanji_sel = 1;
|
kanji_sel = 1;
|
||||||
}
|
}
|
||||||
attr = (state->m_video_ram_1[(tile_addr*2 & 0x1fff) | 0x2000] & 0x00ff);
|
attr = (state->m_video_ram_1[(tile_addr*2 & 0x1fff) | 0x2000] & 0xff);
|
||||||
|
|
||||||
secret = (attr & 1) ^ 1;
|
secret = (attr & 1) ^ 1;
|
||||||
//blink = attr & 2;
|
//blink = attr & 2;
|
||||||
@ -692,7 +693,7 @@ static UPD7220_DRAW_TEXT_LINE( hgdc_draw_text )
|
|||||||
else if(pcg_sel)
|
else if(pcg_sel)
|
||||||
tile_data = (state->m_pcg_ram[0xac000*2+tile*0x40+yi*2+pcg_lr]);
|
tile_data = (state->m_pcg_ram[0xac000*2+tile*0x40+yi*2+pcg_lr]);
|
||||||
else
|
else
|
||||||
tile_data = (state->m_char_rom[tile*char_size+interlace_on*0x800+yi]);
|
tile_data = (state->m_char_rom[tile*char_size+state->m_video_ff[FONTSEL_REG]*0x800+yi]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(reverse) { tile_data^=0xff; }
|
if(reverse) { tile_data^=0xff; }
|
||||||
|
Loading…
Reference in New Issue
Block a user