From b71a55bc489db6bc9beca5cee9cd584e82846ac8 Mon Sep 17 00:00:00 2001 From: spicyjpeg Date: Tue, 18 Oct 2022 15:51:52 +0200 Subject: Add MoveImage(), use draw queue for psxgpu VRAM APIs --- libpsn00b/psxgpu/env.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpsn00b/psxgpu/env.c') diff --git a/libpsn00b/psxgpu/env.c b/libpsn00b/psxgpu/env.c index 5642ad4..1b97026 100644 --- a/libpsn00b/psxgpu/env.c +++ b/libpsn00b/psxgpu/env.c @@ -37,7 +37,7 @@ DRAWENV *SetDefDrawEnv(DRAWENV *env, int x, int y, int w, int h) { return env; } -void DrawOTagEnv(const uint32_t *ot, DRAWENV *env) { +int DrawOTagEnv(const uint32_t *ot, DRAWENV *env) { DR_ENV *prim = &(env->dr_env); // All commands are grouped into a single display list packet for @@ -85,7 +85,7 @@ void DrawOTagEnv(const uint32_t *ot, DRAWENV *env) { //while (!(GPU_GP1 & (1 << 26))) //__asm__ volatile(""); - DrawOTag((const uint32_t *) prim); + return EnqueueDrawOp(&DrawOTag2, (uint32_t) prim, 0, 0); } void PutDrawEnv(DRAWENV *env) { -- cgit v1.2.3