Previous 15994 Revisions Next

r15775 Monday 6th August, 2012 at 15:07:01 UTC by Curt Coder
[SAA5050] Fixed double high character mode, and forced character data to 7-bit. [Curt Coder]
[src/emu/video]saa5050.c

src/emu/video/saa5050.c
r15774r15775
214214
215215   for (sy = 0; sy <= saa5050->y; sy++)
216216   {
217      bool dblhi = false;
218     
217219      /* Set start of line state */
218220      saa5050->flags = 0;
219221      saa5050->prvchr = 32;
r15774r15775
265267               break;
266268            case 0x0d:
267269               saa5050->flags |= SAA5050_DBLHI;
270               dblhi = true;
268271               break;
269272            case 0x18:
270273               saa5050->flags |= SAA5050_CONCEAL;
r15774r15775
319322         {
320323            if (saa5050->flags & SAA5050_DBLHI)
321324            {
322               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine().gfx[saa5050->gfxnum + 1], code, colour, 0, 0, sx * 12, ssy * 20, 0x20000, 0x20000);
323               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine().gfx[saa5050->gfxnum + 2], code, colour, 0, 0, sx * 12, (ssy + 1) * 20, 0x20000, 0x20000);
325               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine().gfx[saa5050->gfxnum + 1], code & 0x7f, colour, 0, 0, sx * 12, ssy * 20, 0x20000, 0x20000);
326               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine().gfx[saa5050->gfxnum + 2], code & 0x7f, colour, 0, 0, sx * 12, (ssy + 1) * 20, 0x20000, 0x20000);
324327            }
325328            else
326329            {
327               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine().gfx[saa5050->gfxnum + 0], code, colour, 0, 0, sx * 12, ssy * 20, 0x20000, 0x20000);
330               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine().gfx[saa5050->gfxnum + 0], code & 0x7f, colour, 0, 0, sx * 12, ssy * 20, 0x20000, 0x20000);
328331            }
329332         }
330333      }
331334
332      if (saa5050->flags & SAA5050_DBLHI)
335      if (dblhi)
333336      {
334337         sy++;
335         saa5050->flags &= ~SAA5050_DBLHI;
336338      }
337339   }
338340}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team