From 5d78a7117dd6ca601c823f915b784ac1f9a72c98 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Wed, 4 Aug 2010 00:11:10 +0000 Subject: [PATCH] [CHG] Make GRRLIB compatible with svn revision 4170 of libogc --- GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h b/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h index f96cec4..2384ded 100644 --- a/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h +++ b/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h @@ -25,6 +25,15 @@ THE SOFTWARE. * Inline functions for configuring the GRRLIB settings. */ +#ifndef GX_BM_SUBTRACT + /** + * Blending type. + * libogc revision 4170 fixed a typo. GX_BM_SUBSTRACT was renamed GX_BM_SUBTRACT. + * But for previous versions this define is needed. + */ + #define GX_BM_SUBTRACT GX_BM_SUBSTRACT +#endif + extern GRRLIB_drawSettings GRRLIB_Settings; /** @@ -45,7 +54,7 @@ void GRRLIB_SetBlend (const GRRLIB_blendMode blendmode) { GX_SetBlendMode(GX_BM_BLEND, GX_BL_SRCCLR, GX_BL_DSTALPHA, GX_LO_CLEAR); break; case GRRLIB_BLEND_MULTI: - GX_SetBlendMode(GX_BM_SUBSTRACT, GX_BL_SRCALPHA, GX_BL_INVSRCALPHA, GX_LO_CLEAR); + GX_SetBlendMode(GX_BM_SUBTRACT, GX_BL_SRCALPHA, GX_BL_INVSRCALPHA, GX_LO_CLEAR); break; case GRRLIB_BLEND_INV: GX_SetBlendMode(GX_BM_BLEND, GX_BL_INVSRCCLR, GX_BL_INVSRCCLR, GX_LO_CLEAR);