crash prevention

This commit is contained in:
dinkc64 2015-02-26 06:58:35 +00:00
parent 645e65eb15
commit 5ee3ec0e24
1 changed files with 1 additions and 0 deletions

View File

@ -597,6 +597,7 @@ void palette_sync(int index, int force)
void remap_8_to_16(int line)
{
if (line > nScreenHeight) return;
int i;
uint16 *p = (uint16 *)&bitmap.data[(line * bitmap.pitch)];
for(i = bitmap.viewport.x; i < bitmap.viewport.w + bitmap.viewport.x; i++)