From: falcovorbis <fal...@us...> - 2024-07-31 01:51:12
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via d07bebfc468cd0046364031a01158c2e83ea2e00 (commit) from 2fdebacac9d70c372e0b6926ffd4ff73728c93ec (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d07bebfc468cd0046364031a01158c2e83ea2e00 Author: Andy Barajas <and...@gm...> Date: Fri Jul 26 05:49:17 2024 -0700 Fix PVR_PACK_COLOR macro (#683) ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/include/dc/pvr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/arch/dreamcast/include/dc/pvr.h b/kernel/arch/dreamcast/include/dc/pvr.h index 84341efb..bd070e11 100644 --- a/kernel/arch/dreamcast/include/dc/pvr.h +++ b/kernel/arch/dreamcast/include/dc/pvr.h @@ -969,10 +969,10 @@ typedef struct { \return The packed color value */ #define PVR_PACK_COLOR(a, r, g, b) ( \ - ( ((uint8)( a * 255 ) ) << 24 ) | \ - ( ((uint8)( r * 255 ) ) << 16 ) | \ - ( ((uint8)( g * 255 ) ) << 8 ) | \ - ( ((uint8)( b * 255 ) ) << 0 ) ) + ( ((uint8_t)( (a) * 255 ) ) << 24 ) | \ + ( ((uint8_t)( (r) * 255 ) ) << 16 ) | \ + ( ((uint8_t)( (g) * 255 ) ) << 8 ) | \ + ( ((uint8_t)( (b) * 255 ) ) << 0 ) ) /** \brief Pack two floating point coordinates into one 32-bit value, truncating them to 16-bits each. hooks/post-receive -- A pseudo Operating System for the Dreamcast. |