Skip to content

Commit

Permalink
Fix for wrong world map colors and not being able to resize world map…
Browse files Browse the repository at this point in the history
… gump
  • Loading branch information
VoxelBoy committed Jun 18, 2020
1 parent 3ac1404 commit 9f66728
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Assets/Scripts/ClassicUO/src/Game/UI/Gumps/WorldMapGump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ bool IsNoDrawable(ushort g)
if (b > 255)
b = 255;

cc.PackedValue = (uint)(A << 24) + (uint)(R << 16) + (uint)(G << 8) + B;
cc.PackedValue = (uint)(A << 24) + (uint)((byte)r << 16) + (uint)((byte)g << 8) + (byte)b;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/ClassicUO/src/GameController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ protected override void Update(GameTime gameTime)
_scene.Update(gameTime.TotalGameTime.TotalMilliseconds, gameTime.ElapsedGameTime.TotalMilliseconds);
Profiler.ExitContext("Update");
}

UIManager.Update(gameTime.TotalGameTime.TotalMilliseconds, gameTime.ElapsedGameTime.TotalMilliseconds);

UnityInputUpdate();

UIManager.Update(gameTime.TotalGameTime.TotalMilliseconds, gameTime.ElapsedGameTime.TotalMilliseconds);

_totalElapsed += gameTime.ElapsedGameTime.TotalMilliseconds;
_currentFpsTime += gameTime.ElapsedGameTime.TotalMilliseconds;
Expand Down
14 changes: 0 additions & 14 deletions Assets/Scripts/XNAEmulator/Graphics/Texture2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,6 @@ internal void SetData(uint[] data, int startOffset = 0, int elementCount = 0, bo

Hash = UnityTexture.GetHashCode();
}

public static void TextureDataFromStreamEXT(
Stream stream,
out int width,
out int height,
out byte[] pixels,
int requestedWidth = -1,
int requestedHeight = -1,
bool zoom = false)
{
width = requestedWidth;
height = requestedHeight;
pixels = new[] {(byte)0};
}

public override int GetHashCode()
{
Expand Down

0 comments on commit 9f66728

Please sign in to comment.