non-working palette fail
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user