25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_fb.c,v 1.116 2006/02/05 10:26:36 debug Exp $ |
* $Id: dev_fb.c,v 1.118 2006/03/04 12:38:47 debug Exp $ |
29 |
* |
* |
30 |
* Generic framebuffer device. |
* Generic framebuffer device. |
31 |
* |
* |
513 |
#endif |
#endif |
514 |
|
|
515 |
if (d->update_x2 != -1) { |
if (d->update_x2 != -1) { |
516 |
int y, addr, addr2, q = d->vfb_scaledown; |
#ifdef WITH_X11 |
517 |
|
int y; |
518 |
|
#endif |
519 |
|
int addr, addr2, q = d->vfb_scaledown; |
520 |
|
|
521 |
if (d->update_x1 >= d->visible_xsize) |
if (d->update_x1 >= d->visible_xsize) |
522 |
d->update_x1 = d->visible_xsize - 1; |
d->update_x1 = d->visible_xsize - 1; |
866 |
memory_device_register(mem, name2, baseaddr, size, dev_fb_access, |
memory_device_register(mem, name2, baseaddr, size, dev_fb_access, |
867 |
d, flags, d->framebuffer); |
d, flags, d->framebuffer); |
868 |
|
|
869 |
machine_add_tickfunction(machine, dev_fb_tick, d, FB_TICK_SHIFT); |
machine_add_tickfunction(machine, dev_fb_tick, d, FB_TICK_SHIFT, 0.0); |
870 |
return d; |
return d; |
871 |
} |
} |
872 |
|
|