Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jul 14, 2024
1 parent e52a1ec commit f5a1187
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ export class Window {
static deserialize(data: ArrayBuffer): Deno.UnsafeWindowSurface {
const [surface, p1, p2] = new BigInt64Array(data);
return new Deno.UnsafeWindowSurface(
systems[surface],
systems[Number(surface)],
Deno.UnsafePointer.create(p1),
Deno.UnsafePointer.create(p2),
);
Expand All @@ -1265,7 +1265,11 @@ export class Window {
return new Deno.UnsafeWindowSurface(surface, p1, p2);
}

#windowSurface(): [string, Deno.PointerValue, Deno.PointerValue] {
#windowSurface(): [
typeof systems[number],
Deno.PointerValue,
Deno.PointerValue,
] {
const wm_info = Deno.UnsafePointer.of(wmInfoBuf);

// Initialize the version info.
Expand Down

0 comments on commit f5a1187

Please sign in to comment.