Skip to content

Commit

Permalink
chore: do not use Framebuffer.shared forever
Browse files Browse the repository at this point in the history
closes #35
  • Loading branch information
kkebo committed Nov 5, 2024
1 parent af7336b commit 1464e52
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Sources/Kernel/Framebuffer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ struct Framebuffer: ~Copyable {
.init(bitPattern: self.baseAddress)!
}

// FIXME: it doesn't work on a real hardware
// static let shared = Self(
// width: 1920,
// height: 1080,
// depth: 32,
// pixelOrder: .rgb
// )

// FIXME: I don't know why, but if `init` is optimized, then the execution stops before reaching the last line.
@_optimize(none)
init(
Expand Down

0 comments on commit 1464e52

Please sign in to comment.