Removed MDA and VGA macros. Replaced with video_is_mda()/video_is_vga()/video_is_ega_vga() functions.
This commit is contained in:
parent
636fd9748d
commit
bcfd38f42e
5 changed files with 146 additions and 38 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "tandy_eeprom.h"
|
||||
#include "timer.h"
|
||||
#include "t1000.h"
|
||||
#include "video.h"
|
||||
|
||||
#include "keyboard.h"
|
||||
#include "keyboard_xt.h"
|
||||
|
|
@ -140,9 +141,9 @@ uint8_t keyboard_xt_read(uint16_t port, void *priv)
|
|||
case 0x60:
|
||||
if ((romset == ROM_IBMPC) && (keyboard_xt.pb & 0x80))
|
||||
{
|
||||
if (VGA || gfxcard == GFX_EGA)
|
||||
if (video_is_ega_vga())
|
||||
temp = 0x4D;
|
||||
else if (MDA)
|
||||
else if (video_is_mda())
|
||||
temp = 0x7D;
|
||||
else
|
||||
temp = 0x6D;
|
||||
|
|
@ -190,9 +191,9 @@ uint8_t keyboard_xt_read(uint16_t port, void *priv)
|
|||
{
|
||||
if (keyboard_xt.pb & 0x08)
|
||||
{
|
||||
if (VGA || gfxcard == GFX_EGA)
|
||||
if (video_is_ega_vga())
|
||||
temp = 4;
|
||||
else if (MDA)
|
||||
else if (video_is_mda())
|
||||
temp = 7;
|
||||
else
|
||||
temp = 6;
|
||||
|
|
|
|||
Loading…
Reference in a new issue