MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / SysGetVideoMode

Function SysGetVideoMode

Kernel/src/arch/x86_64/syscalls.cpp:819–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819long SysGetVideoMode(regs64_t* r){
820 video_mode_t vMode = Video::GetVideoMode();
821 fb_info_t fbInfo;
822 fbInfo.width = vMode.width;
823 fbInfo.height = vMode.height;
824 if(HAL::debugMode) fbInfo.height = vMode.height / 3 * 2;
825 fbInfo.bpp = vMode.bpp;
826 fbInfo.pitch = vMode.pitch;
827
828 *((fb_info_t*)SC_ARG0(r)) = fbInfo;
829
830 return 0;
831}
832
833long SysUName(regs64_t* r){
834 char* str = (char*)SC_ARG0(r);

Callers

nothing calls this directly

Calls 1

GetVideoModeFunction · 0.85

Tested by

no test coverage detected