Made Sheet.Texture into Sheet.GetTexture() since we will want to call it for side-effects.
Do the same for Sheet.Data since it has the side effect of generating a buffer.
This commit is contained in:
committed by
RoosterDragon
parent
ff16690b86
commit
a6f5a21ed4
@@ -118,7 +118,7 @@ namespace OpenRA.Graphics
|
||||
unsafe
|
||||
{
|
||||
var p = (byte*)bitmap.Buffer;
|
||||
var dest = s.sheet.Data;
|
||||
var dest = s.sheet.GetData();
|
||||
var destStride = s.sheet.Size.Width * 4;
|
||||
|
||||
for (var j = 0; j < s.size.Y; j++)
|
||||
|
||||
Reference in New Issue
Block a user