From 55ec5e658bf660d62e24e83fb9ed832cc7047b1d Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Wed, 19 Mar 2025 15:01:04 -0600 Subject: [PATCH] random fix --- lib/ppu_pipeline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ppu_pipeline.c b/lib/ppu_pipeline.c index c4d331a..3f151a1 100644 --- a/lib/ppu_pipeline.c +++ b/lib/ppu_pipeline.c @@ -287,8 +287,8 @@ void pipeline_push_pixel() { } if(ppu_get_context()->rendering_window) { ppu_get_context()->video_buffer[ppu_get_context()->pfc.pushed_x + - (lcd_get_context()->ly * XRES)] = interpolate(ppu_get_context()->video_buffer[ppu_get_context()->pfc.pushed_x + - (lcd_get_context()->ly * XRES)], pixel_data); + (lcd_get_context()->ly * XRES)] = pixel_data;//interpolate(ppu_get_context()->video_buffer[ppu_get_context()->pfc.pushed_x + + //(lcd_get_context()->ly * XRES)], pixel_data); ppu_get_context()->pfc.pushed_x++; }else { @@ -307,7 +307,7 @@ void pipeline_push_pixel() { void pipeline_process() { ppu_get_context()->pfc.map_y = (lcd_get_context()->ly + lcd_get_context()->scroll_y); - ppu_get_context()->pfc.map_x = (ppu_get_context()->pfc.fetch_x + lcd_get_context()->scroll_x); + ppu_get_context()->pfc.map_x = (ppu_get_context()->pfc.fetch_x + (lcd_get_context()->scroll_x & 0b11111000) + ppu_get_context()->pfc.lo_scroll_x); ppu_get_context()->pfc.tile_y = ((lcd_get_context()->ly + lcd_get_context()->scroll_y) % 8) * 2; if(!(ppu_get_context()->line_ticks & 1)) {