Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ setpal
Function
setpal
src/graphics/vga/mod.rs:818–824 ·
view source on GitHub ↗
Set palette
(palette: Palette)
Source
from the content-addressed store, hash-verified
816
817
// Set palette
818
pub fn setpal(palette: Palette)
819
{
820
interrupts::without_interrupts(||
821
{
822
WRITER.lock().setpal(palette)
823
})
824
}
825
826
827
// Set underline location
Callers
1
init
Function · 0.85
Calls
2
setpal
Method · 0.80
lock
Method · 0.80
Tested by
no test coverage detected