Make ibmgraphics stripping work (decgraphics stripping still doesn't work
for me) git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@220 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
39100e0631
commit
e4ede2e885
|
@ -342,6 +342,8 @@ populate_gfx_array (int gfxset)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
state = 0;
|
||||||
|
|
||||||
memset (gfx_map, 0, 256);
|
memset (gfx_map, 0, 256);
|
||||||
|
|
||||||
if (gfxset == NO_GRAPHICS)
|
if (gfxset == NO_GRAPHICS)
|
||||||
|
@ -353,9 +355,12 @@ populate_gfx_array (int gfxset)
|
||||||
&& !(gfx_map[dec_graphics[i]]))
|
&& !(gfx_map[dec_graphics[i]]))
|
||||||
gfx_map[dec_graphics[i] - 128] = no_graphics[i];
|
gfx_map[dec_graphics[i] - 128] = no_graphics[i];
|
||||||
if ((gfxset == IBM_GRAPHICS) && (ibm_graphics[i]))
|
if ((gfxset == IBM_GRAPHICS) && (ibm_graphics[i]))
|
||||||
gfx_map[ibm_graphics[i] - 128] = no_graphics[i];
|
gfx_map[ibm_graphics[i]] = no_graphics[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gfxset == IBM_GRAPHICS)
|
||||||
|
state = -1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
endwin();
|
endwin();
|
||||||
for (i=0;i<256;i++) {
|
for (i=0;i<256;i++) {
|
||||||
|
@ -385,7 +390,7 @@ strip_gfx (unsigned char inchar)
|
||||||
return inchar;
|
return inchar;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gfx_map[inchar] && (state == 1))
|
if (gfx_map[inchar] && (state == 1 || state == -1))
|
||||||
{
|
{
|
||||||
return gfx_map[inchar];
|
return gfx_map[inchar];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue