dirty redraw and SDL framebuffer example