Changed the Toshiba T1000/T1200 init function to load fonts in full 2048-byte mode, fixes #420.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* Implementation of the Toshiba T1000 plasma display, which
|
||||
* has a fixed resolution of 640x200 pixels.
|
||||
*
|
||||
* Version: @(#)m_xt_t1000_vid.c 1.0.11 2019/10/01
|
||||
* Version: @(#)m_xt_t1000_vid.c 1.0.12 2019/10/01
|
||||
*
|
||||
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -678,7 +678,7 @@ static void *t1000_init(const device_t *info)
|
||||
{
|
||||
t1000_t *t1000 = malloc(sizeof(t1000_t));
|
||||
memset(t1000, 0, sizeof(t1000_t));
|
||||
loadfont(L"roms/machines/t1000/t1000font.bin", 2);
|
||||
loadfont(L"roms/machines/t1000/t1000font.bin", 8);
|
||||
cga_init(&t1000->cga);
|
||||
video_inform(VIDEO_FLAG_TYPE_CGA, &timing_t1000);
|
||||
|
||||
|
@@ -40,13 +40,13 @@
|
||||
* W = 3 bus clocks
|
||||
* L = 4 bus clocks
|
||||
*
|
||||
* Version: @(#)video.c 1.0.31 2018/11/01
|
||||
* Version: @(#)video.c 1.0.32 2019/10/01
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
*
|
||||
* Copyright 2008-2018 Sarah Walker.
|
||||
* Copyright 2016-2018 Miran Grca.
|
||||
* Copyright 2008-2019 Sarah Walker.
|
||||
* Copyright 2016-2019 Miran Grca.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
@@ -865,7 +865,7 @@ loadfont(wchar_t *s, int format)
|
||||
fread(&fontdatm[c][0], 1, 16, f);
|
||||
break;
|
||||
|
||||
case 8: /* Amstrad PC1512 */
|
||||
case 8: /* Amstrad PC1512, Toshiba T1000/T1200 */
|
||||
for (c = 0; c < 2048; c++) /* Allow up to 2048 chars */
|
||||
for (d=0; d<8; d++)
|
||||
fontdat[c][d] = fgetc(f);
|
||||
|
Reference in New Issue
Block a user