X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.c;h=d3123868c49eb3a6028ca0aecc481bab4621c571;hb=e05b81fc5b3f640496795ced5d893ece4cc51c2d;hp=54de78c99ca2a759285b38e7b893288bd6fb0771;hpb=db1d3564e69b422518701926bffdeae05379c400;p=picodrive.git diff --git a/pico/pico.c b/pico/pico.c index 54de78c..d312386 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -61,7 +61,7 @@ void PicoPower(void) Pico.m.frame_count = 0; // clear all memory of the emulated machine - memset(&Pico.ram,0,(unsigned int)&Pico.rom-(unsigned int)&Pico.ram); + memset(&Pico.ram,0,(unsigned char *)&Pico.rom - Pico.ram); memset(&Pico.video,0,sizeof(Pico.video)); memset(&Pico.m,0,sizeof(Pico.m)); @@ -220,7 +220,7 @@ void PicoLoopPrepare(void) scanlines_total = Pico.m.pal ? 312 : 262; if (PicoAHW & PAHW_32X) - p32x_pwm_refresh(); + p32x_timers_recalc(); }