non-working palette fail

This commit is contained in:
Paul Chote
2010-08-14 21:07:19 +12:00
parent 5c1408d4d7
commit dda6556e17
7 changed files with 73 additions and 60 deletions

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Widgets
string cachedVideo;
float invLength;
float2 videoOrigin, videoSize;
int[,] overlay;
uint[,] overlay;
bool stopped;
bool paused;
@@ -56,8 +56,8 @@ namespace OpenRA.Widgets
if (!DrawOverlay)
return;
overlay = new int[2*textureSize, 2*textureSize];
var black = Color.Black.ToArgb();
overlay = new uint[2*textureSize, 2*textureSize];
uint black = (uint)255 << 24;
for (var y = 0; y < video.Height; y++)
for (var x = 0; x < video.Width; x++)
overlay[2*y,x] = black;