From f0b0afe18b3373ba510b86a8cf0d367d1e8db742 Mon Sep 17 00:00:00 2001 From: rogerman Date: Thu, 19 Jan 2023 14:24:35 -0800 Subject: [PATCH] Colorspace Handler: FragmentColor may now be accessed through a 4-element array, in which elements 0-1-2-3 represent color components R-G-B-A, respectively. --- desmume/src/utils/colorspacehandler/colorspacehandler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desmume/src/utils/colorspacehandler/colorspacehandler.h b/desmume/src/utils/colorspacehandler/colorspacehandler.h index fe95fe85d..d42707f7a 100644 --- a/desmume/src/utils/colorspacehandler/colorspacehandler.h +++ b/desmume/src/utils/colorspacehandler/colorspacehandler.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016-2022 DeSmuME team + Copyright (C) 2016-2023 DeSmuME team This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -82,6 +82,8 @@ enum NDSColorFormat union FragmentColor { u32 color; + u8 component[4]; + struct { u8 r,g,b,a;