Skip to content

Commit

Permalink
Enchanced per-tile vertical scroll (ekeeke#453)
Browse files Browse the repository at this point in the history
* Enchanced per-tile vertical scroll implementation

* Comment cleanup
  • Loading branch information
alexkiri authored Aug 13, 2022
1 parent 47d2026 commit e5f77f1
Show file tree
Hide file tree
Showing 14 changed files with 700 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vdp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ static void vdp_reg_w(unsigned int r, unsigned int d, unsigned int cycles)
}
else
{
render_bg = (reg[11] & 0x04) ? render_bg_m5_vs : render_bg_m5;
render_bg = (reg[11] & 0x04) ? (config.enhanced_vscroll ? render_bg_m5_vs_enhanced : render_bg_m5_vs) : render_bg_m5;
render_obj = (reg[12] & 0x08) ? render_obj_m5_ste : render_obj_m5;
}

Expand Down Expand Up @@ -1902,7 +1902,7 @@ static void vdp_reg_w(unsigned int r, unsigned int d, unsigned int cycles)
/* Vertical Scrolling mode */
if (d & 0x04)
{
render_bg = im2_flag ? render_bg_m5_im2_vs : render_bg_m5_vs;
render_bg = im2_flag ? render_bg_m5_im2_vs : (config.enhanced_vscroll ? render_bg_m5_vs_enhanced : render_bg_m5_vs);
}
else
{
Expand Down
Loading

0 comments on commit e5f77f1

Please sign in to comment.