Mercurial > repos > blastem
comparison vdp.c @ 1269:ff8e29eeb1ec
Render horizontal border in H32 mode as well. Both modes still need some minor work to deal with inactive/active transition
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 06 Mar 2017 09:54:44 -0800 |
parents | 3772bb926be5 |
children | 687d3969416b |
comparison
equal
deleted
inserted
replaced
1268:eca01056a915 | 1269:ff8e29eeb1ec |
---|---|
2040 COLUMN_RENDER_BLOCK(30, 113) | 2040 COLUMN_RENDER_BLOCK(30, 113) |
2041 COLUMN_RENDER_BLOCK_REFRESH(32, 121) | 2041 COLUMN_RENDER_BLOCK_REFRESH(32, 121) |
2042 case 129: | 2042 case 129: |
2043 external_slot(context); | 2043 external_slot(context); |
2044 CHECK_LIMIT | 2044 CHECK_LIMIT |
2045 case 130: | 2045 case 130: { |
2046 external_slot(context); | 2046 external_slot(context); |
2047 CHECK_LIMIT | 2047 uint32_t bg_color = context->colors[context->regs[REG_BG_COLOR] & 0x3F]; |
2048 for (int i = 256+BORDER_LEFT; i < 256+HORIZ_BORDER; i++) | |
2049 { | |
2050 context->output[i] = bg_color; | |
2051 } | |
2052 CHECK_LIMIT | |
2053 } | |
2048 //sprite render to line buffer starts | 2054 //sprite render to line buffer starts |
2049 case 131: | 2055 case 131: |
2050 context->cur_slot = MAX_DRAWS_H32-1; | 2056 context->cur_slot = MAX_DRAWS_H32-1; |
2051 memset(context->linebuf, 0, LINEBUF_SIZE); | 2057 memset(context->linebuf, 0, LINEBUF_SIZE); |
2052 render_sprite_cells(context); | 2058 render_sprite_cells(context); |