summaryrefslogtreecommitdiff
path: root/emu/emul.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu/emul.c')
-rw-r--r--emu/emul.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/emu/emul.c b/emu/emul.c
index 3ee60c0..ac4b64c 100644
--- a/emu/emul.c
+++ b/emu/emul.c
@@ -152,10 +152,11 @@ void emul_run( emul_t *emul, int nof_steps )
SDL_RenderCopy( emul->renderer, emul->background_texture, NULL, NULL );
- for( int i = 0; i < emul->bus->nof_devices; i++ ) {
- device_t *device = emul->bus->devices[i].device;
- device->vtable->draw( device, emul->renderer );
- }
+ emul->bus->base.vtable->draw( emul->bus, emul->renderer );
+ //~ for( int i = 0; i < emul->bus->nof_devices; i++ ) {
+ //~ device_t *device = emul->bus->devices[i].device;
+ //~ device->vtable->draw( device, emul->renderer );
+ //~ }
SDL_RenderPresent( emul->renderer );