feat: expand Intel GPU display management

This commit is contained in:
daniel committed 2026-07-30 17:12:08 +01:00
1 parent 86de3400a9
commit 471903bafb
25 files changed
+1715 -16

No files matched your search

+16
View File
@@ -96,6 +96,22 @@ namespace montauk::abi {
return GPU::Flip((int)index, (flags & 1) != 0);
}
static int64_t Sys_DisplayInfo(DisplayInfo* out) {
return Drivers::Graphics::IntelGPU::GetDisplayInfo(out) ? 0 : -1;
}
static int64_t Sys_DisplayModes(DisplayModeInfo* out, int maxCount) {
return Drivers::Graphics::IntelGPU::GetDisplayModes(out, maxCount);
}
static int64_t Sys_DisplaySetMode(int modeIndex) {
return Drivers::Graphics::IntelGPU::SetDisplayMode(modeIndex);
}
static int64_t Sys_DisplayBrightness(int percent) {
return Drivers::Graphics::IntelGPU::Brightness(percent);
}
static uint64_t Sys_TermSize() {
// If the process is redirected to a GUI terminal, return those dimensions
auto* proc = Sched::GetCurrentProcessPtr();