diff options
Diffstat (limited to 'apps/codecs/libasap/acpu.c')
-rw-r--r-- | apps/codecs/libasap/acpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libasap/acpu.c b/apps/codecs/libasap/acpu.c index 0e91f9083a..0fd5988b83 100644 --- a/apps/codecs/libasap/acpu.c +++ b/apps/codecs/libasap/acpu.c | |||
@@ -286,7 +286,7 @@ FUNC(void, Cpu_RunScanlines, (P(ASAP_State PTR, ast), P(int, scanlines))) | |||
286 | cycle = ast _ cycle; | 286 | cycle = ast _ cycle; |
287 | if (cycle >= ast _ nearest_event_cycle) { | 287 | if (cycle >= ast _ nearest_event_cycle) { |
288 | if (cycle >= ast _ next_scanline_cycle) { | 288 | if (cycle >= ast _ next_scanline_cycle) { |
289 | if (++ast _ scanline_number == (ast _ module_info.ntsc ? 262 : 312)) | 289 | if (++ast _ scanline_number == (ast _ module_info->ntsc ? 262 : 312)) |
290 | ast _ scanline_number = 0; | 290 | ast _ scanline_number = 0; |
291 | ast _ cycle = cycle += 9; | 291 | ast _ cycle = cycle += 9; |
292 | ast _ next_scanline_cycle += 114; | 292 | ast _ next_scanline_cycle += 114; |
@@ -337,7 +337,7 @@ FUNC(void, Cpu_RunScanlines, (P(ASAP_State PTR, ast), P(int, scanlines))) | |||
337 | case 0xb2: | 337 | case 0xb2: |
338 | case 0xd2: | 338 | case 0xd2: |
339 | case 0xf2: | 339 | case 0xf2: |
340 | ast _ scanline_number = (ast _ scanline_number + scanlines - 1) % (ast _ module_info.ntsc ? 262 : 312); | 340 | ast _ scanline_number = (ast _ scanline_number + scanlines - 1) % (ast _ module_info->ntsc ? 262 : 312); |
341 | scanlines = 1; | 341 | scanlines = 1; |
342 | ast _ cycle = cycle_limit; | 342 | ast _ cycle = cycle_limit; |
343 | break; | 343 | break; |