diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-15 10:02:35 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-15 10:02:35 +0200 |
| commit | 6eabb5aa549254c2272cedee26d4245f31f2dc7a (patch) | |
| tree | 1962581a2ea36f421718aad7bf90b1a37cc4c530 /examples/io/pads | |
| parent | b458ea70700739bf8a64217af369c7ace08fc954 (diff) | |
| download | psn00bsdk-6eabb5aa549254c2272cedee26d4245f31f2dc7a.tar.gz | |
Update sound/spustream, clean up other examples
Diffstat (limited to 'examples/io/pads')
| -rw-r--r-- | examples/io/pads/main.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/io/pads/main.c b/examples/io/pads/main.c index 17bf331..29bb527 100644 --- a/examples/io/pads/main.c +++ b/examples/io/pads/main.c @@ -62,17 +62,17 @@ static const char *const PAD_TYPEIDS[] = { #define BGCOLOR_B 0 typedef struct { - DISPENV disp; - DRAWENV draw; -} DB; + DISPENV disp; + DRAWENV draw; +} Framebuffer; typedef struct { - DB db[2]; - uint32_t db_active; -} CONTEXT; + Framebuffer db[2]; + int db_active; +} RenderContext; -void init_context(CONTEXT *ctx) { - DB *db; +void init_context(RenderContext *ctx) { + Framebuffer *db; ResetGraph(0); ctx->db_active = 0; @@ -99,8 +99,8 @@ void init_context(CONTEXT *ctx) { FntOpen(8, 16, 304, 208, 2, 512); } -void display(CONTEXT *ctx) { - DB *db; +void display(RenderContext *ctx) { + Framebuffer *db; DrawSync(0); VSync(0); @@ -227,7 +227,7 @@ void poll_cb(uint32_t port, const volatile uint8_t *buff, size_t rx_len) { /* Main */ -static CONTEXT ctx; +static RenderContext ctx; int main(int argc, const char* argv[]) { init_context(&ctx); |
