Skip to content

Commit

Permalink
Issue#214: elminate call to video_doblit at hsync with scry >= 384.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Dec 20, 2023
1 parent ab4c0d7 commit e84b643
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ static void mode7_gen_nula_lookup(void)
mode7_need_new_lookup = 0;
}

static inline void mode7_render(ALLEGRO_LOCKED_REGION *region, uint8_t dat)
static void mode7_render(ALLEGRO_LOCKED_REGION *region, uint8_t dat)
{
if (scrx < (1280-32)) {
int mcolx = mode7_col;
Expand Down Expand Up @@ -899,11 +899,8 @@ void video_poll(int clocks, int timer_enable)
scrx = 128 - ((crtc[3] & 15) * 4);
else
scrx = 128 - ((crtc[3] & 15) * 8);
scry++;
if (scry >= 384) {
scry = 0;
video_doblit(crtc_mode, crtc[4]);
}
if (scry < 384)
++scry;
}

switch(vid_dtype_intern) {
Expand Down

0 comments on commit e84b643

Please sign in to comment.