解决Linux任务栏图标显示问题

This commit is contained in:
小红帽 2025-01-10 17:44:19 +08:00
parent cd0521c813
commit 43313828a7

View File

@ -1532,11 +1532,12 @@ namespace CPF.Linux
var data = new UIntPtr[_width * _height + 2];
data[0] = new UIntPtr((uint)_width);
data[1] = new UIntPtr((uint)_height);
var offset = 2;
for (var y = 0; y < _height; y++)
{
var r = y * _width;
for (var x = 0; x < _width; x++)
data[r + x] = new UIntPtr(_bdata[r + x]);
data[r + x + offset] = new UIntPtr(_bdata[r + x]);
}
fixed (void* pdata = data)