// Stage present dispatcher. // // stagePresent walks the per-row dirty bands set by drawing primitives // and asks the port HAL to flip just those rows to the display, then // resets the dirty state. #include #include "joey/debug.h" #include "joey/present.h" #include "hal.h" #include "surfaceInternal.h" // ----- Public API (alphabetical) ----- void stagePresent(void) { SurfaceT *stage; stage = stageGet(); if (stage == NULL) { return; } halPresent(stage); stageDirtyClearAll(); }