Contribute
Register

EFI programming

Status
Not open for further replies.
Joined
Aug 22, 2018
Messages
22
Motherboard
Asus ROG Strix G531GT
CPU
i7-9750H/HM370
Graphics
GTX 1650, UHD 630
Mac
  1. MacBook Air
Mobile Phone
  1. Android
  2. iOS
Hi,
I am a bit new to (U)EFI programming.
I use Virtual Bios Mod by @serdeliuk, i would like to customize VBM as i already made a few things.
My question is how to set a background. It is now in the old B.I.O.S./ CMOS style.
Serdeliuk suggested to take a look into Clovers code, i couldn't find anything todo with the theme.
I found the code for the "main blue box/background" the code is:

/////////--DRAW MAIN BLUE BOX--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Print(L" ");
Print(L"%c",BOXDRAW_DOWN_RIGHT_DOUBLE);
for(int i = 0; i < 78; i++) {
Print(L"%c",BOXDRAW_DOUBLE_HORIZONTAL);
};
Print(L"%c",BOXDRAW_DOWN_LEFT_DOUBLE);

for(int w=0; w<11 ; w++){
Print(L"%c",BOXDRAW_VERTICAL);
for(int i = 0; i < 78; i++) {
Print(L" ");
};
Print(L"%c",BOXDRAW_VERTICAL);
};

Print(L"%c",BOXDRAW_UP_RIGHT_DOUBLE);
for(int i = 0; i < 78; i++) {
Print(L"%c",BOXDRAW_DOUBLE_HORIZONTAL);
};
Print(L"%c",BOXDRAW_UP_LEFT_DOUBLE);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Best regards,
Matthijs
 
Last edited:
That was exacrly what i was looking for thanks! I will try to make it.
 
Status
Not open for further replies.
Back
Top