From 488602d1e6f37f58ff57be04e6233ca1f919f9ee Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 20 Jun 2018 22:45:45 -0400 Subject: draw red bg for testing --- ops.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ops.yaml b/ops.yaml index 30c0c64..58afc61 100644 --- a/ops.yaml +++ b/ops.yaml @@ -9436,6 +9436,12 @@ templates: } // TODO: draw background + for (int i = 0; i < 160; i++) { + // interim: set line to red + ctx->gpu.rgb[3 * (ctx->gpu.line * 160 + i) + 0] = 0xff; + ctx->gpu.rgb[3 * (ctx->gpu.line * 160 + i) + 1] = 0x00; + ctx->gpu.rgb[3 * (ctx->gpu.line * 160 + i) + 2] = 0x00; + } // draw foreground sprites for (int i = 0; i < 40; i++) { -- cgit v1.2.3