joeylib2/src/core/present.c

26 lines
533 B
C

// 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 <stddef.h>
#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();
}