Skip to content

Commit

Permalink
Update vic4.c
Browse files Browse the repository at this point in the history
  • Loading branch information
RetroCogs committed Sep 14, 2024
1 parent 802cdbb commit 02584e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion targets/mega65/vic4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,12 @@ static XEMU_INLINE void vic4_render_char_raster ( void )
enable_bg_paint = 1;
draw_mask = 0xFF; // initialize draw mask being $FF initially (glyph row is not masked out)
const Uint8 *row_data_base_addr = get_charset_effective_addr(); // FIXME: is it OK that I moved here, before the loop?
if (display_row <= display_row_count) {
// If this line is inside the vertical borders, mark all pixels as border color
if (ycounter < BORDER_Y_TOP || ycounter >= BORDER_Y_BOTTOM) {
for (int i = 0; i < TEXTURE_WIDTH; i++)
*(current_pixel++) = palette[REG_BORDER_COLOR];
}
else if (display_row <= display_row_count) {
Uint32 colour_ram_current_addr = COLOUR_RAM_OFFSET + (display_row * LINESTEP_BYTES);
Uint32 screen_ram_current_addr = SCREEN_ADDR + (display_row * LINESTEP_BYTES);
// Account for Chargen X-displacement
Expand Down

0 comments on commit 02584e7

Please sign in to comment.