mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-09 19:08:13 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -52,12 +52,12 @@ Minimap::Minimap(Font *font, Options *options, Textures *textures, bool optimise
|
||||
void Minimap::reloadColours()
|
||||
{
|
||||
ColourTable *colourTable = Minecraft::GetInstance()->getColourTable();
|
||||
// 4J note that this code has been extracted pretty much as it was in Minimap::render, although with some byte order changes
|
||||
// 4J note that this code has been extracted pretty much as it was in Minimap::render, although with some BYTE order changes
|
||||
for( int i = 0; i < (14 * 4); i++ ) // 14 material colours currently, 4 brightnesses of each
|
||||
{
|
||||
if (i / 4 == 0)
|
||||
{
|
||||
// 4J - changed byte order to save having to reorder later
|
||||
// 4J - changed BYTE order to save having to reorder later
|
||||
#ifdef __ORBIS__
|
||||
LUT[i] = 0;
|
||||
#else
|
||||
@@ -78,7 +78,7 @@ void Minimap::reloadColours()
|
||||
int g = ((color >> 8) & 0xff) * br / 255;
|
||||
int b = ((color) & 0xff) * br / 255;
|
||||
|
||||
// 4J - changed byte order to save having to reorder later
|
||||
// 4J - changed BYTE order to save having to reorder later
|
||||
#if ( defined _DURANGO || defined _WIN64 || __PSVITA__ )
|
||||
LUT[i] = 255 << 24 | b << 16 | g << 8 | r;
|
||||
#elif defined _XBOX
|
||||
|
||||
Reference in New Issue
Block a user