1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00

Move notify_refresh into the proper file

This commit is contained in:
Peter Evans 2018-03-07 17:08:16 -06:00
parent 0edfcaf370
commit 58190f0c9b
2 changed files with 13 additions and 13 deletions

View File

@ -436,3 +436,16 @@ apple2_set_display(apple2 *mach, vm_8bit mode)
vm_screen_set_logical_coords(mach->screen, width, height); vm_screen_set_logical_coords(mach->screen, width, height);
} }
/*
* Tell the screen that it has a change ready to be displayed. This
* function will not immediately redraw the screen, and when the screen
* is redrawn is up to our framerate cycle.
*/
void
apple2_notify_refresh(apple2 *mach)
{
if (mach && mach->screen) {
mach->screen->dirty = true;
}
}

View File

@ -114,16 +114,3 @@ apple2_draw(apple2 *mach)
apple2_draw_40col(mach); apple2_draw_40col(mach);
} }
} }
/*
* Tell the screen that it has a change ready to be displayed. This
* function will not immediately redraw the screen, and when the screen
* is redrawn is up to our framerate cycle.
*/
void
apple2_notify_refresh(apple2 *mach)
{
if (mach && mach->screen) {
mach->screen->dirty = true;
}
}