X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fm6502.c;h=7814912264ca4871c23d457592b54b4e48d0ac0e;hp=11a787432921a25a4d139ad96334a1a61867f12f;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hpb=3f1091236d800c43a3124c44c7da54e53f205b13 diff --git a/hacks/m6502.c b/hacks/m6502.c index 11a78743..78149122 100644 --- a/hacks/m6502.c +++ b/hacks/m6502.c @@ -222,6 +222,7 @@ m6502_draw (Display *dpy, Window window, void *closure) struct state *st = (struct state *) closure; unsigned int x = 0, y = 0; double te; + const analogtv_reception *reception = &st->reception; m6502_next_eval(st->machine,500); @@ -229,10 +230,8 @@ m6502_draw (Display *dpy, Window window, void *closure) for (y = 0; y < 32; y++) paint_pixel(st,x,y,st->pixels[x][y]); - analogtv_init_signal(st->tv, 0.04); analogtv_reception_update(&st->reception); - analogtv_add_signal(st->tv, &st->reception); - analogtv_draw(st->tv); + analogtv_draw(st->tv, 0.04, &reception, 1); te = get_time(st); if (te > st->dt){ /* do something more interesting here XXX */ @@ -243,7 +242,11 @@ m6502_draw (Display *dpy, Window window, void *closure) start_rand_bin_prog(st->machine,st); } - return 10000; +#ifdef USE_IPHONE + return 0; +#else + return 5000; +#endif }