mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Fixed spelling mistake in command function name. Updated collor packing macros to correct type casting.
This commit is contained in:
parent
3f7f2c9163
commit
14a46c5372
@ -1257,7 +1257,7 @@ bool Register_Cmd(HSQUIRRELVM vm)
|
||||
cmdns.Func(_SC("GetInvoker"), &Cmd_GetInvoker);
|
||||
cmdns.Func(_SC("GetInvokerID"), &Cmd_GetInvokerID);
|
||||
cmdns.Func(_SC("GetName"), &Cmd_GetName);
|
||||
cmdns.Func(_SC("getText"), &Cmd_GetText);
|
||||
cmdns.Func(_SC("GetText"), &Cmd_GetText);
|
||||
// Output debugging information
|
||||
LogDbg("Registration of <Cmd functions> type was successful");
|
||||
|
||||
|
@ -335,12 +335,12 @@ class LocalEvent;
|
||||
* COLOR PACKING
|
||||
*/
|
||||
|
||||
#define PACK_RGB(r, g, b) (uint32)(r << 16 | g << 8 | b)
|
||||
#define PACK_RGBA(r, g, b, a) (uint32)(r << 24 | g << 16 | b << 8 | a)
|
||||
#define PACK_ARGB(a, r, g, b) (uint32)(a << 24 | r << 16 | g << 8 | b)
|
||||
#define PACK_RGB(r, g, b) (Uint32)(r << 16 | g << 8 | b)
|
||||
#define PACK_RGBA(r, g, b, a) (Uint32)(r << 24 | g << 16 | b << 8 | a)
|
||||
#define PACK_ARGB(a, r, g, b) (Uint32)(a << 24 | r << 16 | g << 8 | b)
|
||||
|
||||
#define PACK_RGB_TO_RGBA(r, g, b) (uint32)(r << 24 | g << 16 | b << 8 | 0)
|
||||
#define PACK_RGB_TO_ARGB(r, g, b) (uint32)(0 << 24 | r << 16 | g << 8 | b)
|
||||
#define PACK_RGB_TO_RGBA(r, g, b) (Uint32)(r << 24 | g << 16 | b << 8 | 0)
|
||||
#define PACK_RGB_TO_ARGB(r, g, b) (Uint32)(0 << 24 | r << 16 | g << 8 | b)
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* GENERAL RESPONSES
|
||||
|
Loading…
Reference in New Issue
Block a user