aboutsummaryrefslogtreecommitdiff
path: root/examples/system
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-11 00:37:10 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-11 00:37:10 +0100
commit8b6a76055ca426c494e16042e21f5e19b870b2ac (patch)
treee6c875e8c1bd9169e4f49a1b4ad86026547d7020 /examples/system
parentb55bc88017aac1bbe9eab21b480093459c0fd0e1 (diff)
downloadpsn00bsdk-8b6a76055ca426c494e16042e21f5e19b870b2ac.tar.gz
Cleaned up pads example, added CMake script for cartrom
Diffstat (limited to 'examples/system')
-rw-r--r--examples/system/dynlink/display.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/system/dynlink/display.c b/examples/system/dynlink/display.c
index d8ad3ed..573f17c 100644
--- a/examples/system/dynlink/display.c
+++ b/examples/system/dynlink/display.c
@@ -10,6 +10,10 @@
#define SCREEN_XRES 320
#define SCREEN_YRES 240
+#define BGCOLOR_R 48
+#define BGCOLOR_G 24
+#define BGCOLOR_B 0
+
/* Display/GPU context utilities */
void init_context(CONTEXT *ctx) {
@@ -23,14 +27,14 @@ void init_context(CONTEXT *ctx) {
db = &(ctx->db[0]);
SetDefDispEnv(&(db->disp), 0, 0, SCREEN_XRES, SCREEN_YRES);
SetDefDrawEnv(&(db->draw), SCREEN_XRES, 0, SCREEN_XRES, SCREEN_YRES);
- setRGB0(&(db->draw), 63, 0, 127);
+ setRGB0(&(db->draw), BGCOLOR_R, BGCOLOR_G, BGCOLOR_B);
db->draw.isbg = 1;
db->draw.dtd = 1;
db = &(ctx->db[1]);
SetDefDispEnv(&(db->disp), SCREEN_XRES, 0, SCREEN_XRES, SCREEN_YRES);
SetDefDrawEnv(&(db->draw), 0, 0, SCREEN_XRES, SCREEN_YRES);
- setRGB0(&(db->draw), 63, 0, 127);
+ setRGB0(&(db->draw), BGCOLOR_R, BGCOLOR_G, BGCOLOR_B);
db->draw.isbg = 1;
db->draw.dtd = 1;