Previous 15994 Revisions Next

r15932 Thursday 16th August, 2012 at 22:41:37 UTC by Angelo Salese
Uhm, pal isn't for this one ...
[src/mess/drivers]vboy.c

src/mess/drivers/vboy.c
r15931r15932
660660static void put_char(vboy_state *state, bitmap_ind16 &bitmap, int x, int y, UINT16 ch, bool flipx, bool flipy, bool trans, UINT8 pal)
661661{
662662   UINT16 data, code = ch;
663   UINT8 yi, xi, dat, col;
663   UINT8 yi, xi, dat;
664664
665665   for (yi = 0; yi < 8; yi++)
666666   {
r15931r15932
678678         else
679679            dat = ((data >> ((7-xi) << 1)) & 0x03);
680680
681         col = (pal >> (dat*2)) & 3;
681         //col = (pal >> (dat*2)) & 3; // TODO: check what this is for!
682682
683683         res_x = x + xi;
684684         res_y = y + yi;
685685
686//         if(res_x > (384*2) || res_y > 224 || res_x < (0) || res_y < 0)
687//            continue;
686         //if(res_x > (384) || res_y > 224 || res_x < (0) || res_y < 0)
687         //   continue;
688688
689689         if (!trans || (trans && dat))
690            bitmap.pix16((res_y), (res_x)) = col;
690            bitmap.pix16((res_y), (res_x)) = state->machine().pens[dat];
691691      }
692692   }
693693}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team