diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-05-02 19:16:22 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-05-04 23:49:27 +0100 |
commit | 5194eeb0e7bb5d2a2086c96ed04c2a47f9594d87 (patch) | |
tree | a32ab5c832ae312cb8ddd9fb45dc3f894ac39820 /src/rinput.c | |
parent | bb5ce99e6cac43414a4bc61a636888e9f1f69b8c (diff) |
Refactor the RGBA colour struct into engineapi.h
In both the engine and SST it's used in more places than just console
printing, so it makes more sense to give it a more appropriate nanme and
location.
Diffstat (limited to 'src/rinput.c')
-rw-r--r-- | src/rinput.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rinput.c b/src/rinput.c index e24fc1c..53c16e3 100644 --- a/src/rinput.c +++ b/src/rinput.c @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -22,11 +22,11 @@ #include <Windows.h> #include "con_.h" -#include "gamedata.h" -#include "hook.h" #include "engineapi.h" #include "errmsg.h" #include "feature.h" +#include "gamedata.h" +#include "hook.h" #include "intdefs.h" #include "mem.h" #include "vcall.h" @@ -149,9 +149,9 @@ INIT { .lpszClassName = L"RInput" }; if (!RegisterClassExW(&wc)) { - struct con_colour gold = {255, 210, 0, 255}; - struct con_colour blue = {45, 190, 190, 255}; - struct con_colour white = {200, 200, 200, 255}; + struct rgba gold = {255, 210, 0, 255}; + struct rgba blue = {45, 190, 190, 255}; + struct rgba white = {200, 200, 200, 255}; con_colourmsg(&gold, "SST PROTIP! "); con_colourmsg(&blue, "It appears you're using RInput.exe.\n" "Consider launching without that and using "); |