vrender0: allow resolutions higher than 512x240 [Luca Elia]

This commit is contained in:
Luca Elia 2015-11-21 18:40:33 +01:00
parent ac36563426
commit 5ccd8d8f49
2 changed files with 3 additions and 4 deletions

View File

@ -703,8 +703,8 @@ UINT32 crystal_state::screen_update_crystal(screen_device &screen, bitmap_ind16
SetVidReg(space, 0x8e, GetVidReg(space, 0x8e) ^ 1);
srcline = (UINT16 *) Visible;
for (y = 0; y < 240; y++)
memcpy(&bitmap.pix16(y), &srcline[y * 512], width * 2);
for (y = 0; y < screen.height(); y++)
memcpy(&bitmap.pix16(y), &srcline[y * 1024], width * 2);
return 0;
}

View File

@ -296,7 +296,6 @@ TILENAME(bpp, t, a)\
else if (bpp == 8)\
{\
UINT8 Texel = Quad->u.Imageb[Offset];\
Texel = Quad->u.Imageb[Offset];\
Color = Quad->Pal[Texel];\
}\
else if (bpp == 16)\
@ -485,7 +484,7 @@ int vr0video_device::vrender0_ProcessPacket(UINT32 PacketPtr, UINT16 *Dest, UINT
{
QuadInfo Quad;
Quad.Pitch = 512;
Quad.Pitch = 1024;
// assert(Endx >= Dx && Endy >= Dy);