summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-06-20 22:45:45 -0400
committerPaul Duncan <pabs@pablotron.org>2018-06-20 22:45:45 -0400
commit488602d1e6f37f58ff57be04e6233ca1f919f9ee (patch)
tree507ac331f79b37f3765afe6a13dba91edd4aeea5
parentb9d24e00470c2538aa55e36833a7b89cdfcd9494 (diff)
downloadgb-c-488602d1e6f37f58ff57be04e6233ca1f919f9ee.tar.bz2
gb-c-488602d1e6f37f58ff57be04e6233ca1f919f9ee.zip
draw red bg for testing
-rw-r--r--ops.yaml6
1 files changed, 6 insertions, 0 deletions
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++) {