comparison vdp.c @ 1180:e2b81a0f8fd8

Undo poorly thought out minor optimization that screwed up rendering
author Michael Pavone <pavone@retrodev.com>
date Tue, 17 Jan 2017 19:01:04 -0800
parents 1271b240b9c2
children 8d8c71ebbbce
comparison
equal deleted inserted replaced
1179:1271b240b9c2 1180:e2b81a0f8fd8
1182 return; 1182 return;
1183 } 1183 }
1184 if (line >= 240) { 1184 if (line >= 240) {
1185 return; 1185 return;
1186 } 1186 }
1187 render_map(context->col_2, context->tmp_buf_b, context->buf_b_off+8, context);
1187 uint8_t *sprite_buf, *plane_a, *plane_b; 1188 uint8_t *sprite_buf, *plane_a, *plane_b;
1188 int plane_a_off, plane_b_off; 1189 int plane_a_off, plane_b_off;
1189 if (col) 1190 if (col)
1190 { 1191 {
1191 render_map(context->col_2, context->tmp_buf_b, context->buf_b_off+8, context);
1192 col-=2; 1192 col-=2;
1193 dst = context->output + col * 8; 1193 dst = context->output + col * 8;
1194 if (context->debug < 2) { 1194 if (context->debug < 2) {
1195 sprite_buf = context->linebuf + col * 8; 1195 sprite_buf = context->linebuf + col * 8;
1196 uint8_t a_src, src; 1196 uint8_t a_src, src;