feat: expand Intel GPU display management
This commit is contained in:
1 parent
86de3400a9
commit
471903bafb
25 files changed
+1715
-16
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user