mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 20:12:04 +00:00
forgot some WT shit
This commit is contained in:
parent
c62615a97a
commit
56785317e2
2 changed files with 2 additions and 3 deletions
|
|
@ -12892,8 +12892,7 @@ self.buildResultImageItem = function (ptr) {
|
|||
if (a === 0) {
|
||||
return null
|
||||
}
|
||||
const c =
|
||||
((color << 8) & 0xff0000) | ((color >> 8) & 0xff00) | ((color >> 24) & 0xff) // black magic
|
||||
const c = ((color << 8) & 0xff0000) | ((color >> 8) & 0xff00) | ((color >> 24) & 0xff) // black magic
|
||||
const buf = new ArrayBuffer(w * h * 4)
|
||||
const buf8 = new Uint8ClampedArray(buf)
|
||||
const data = new Uint32Array(buf) // operate on a single position, instead of 4 positions at once
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue