mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
Use ptr for IN parameter. Use ref in method body.
This commit is contained in:
parent
2021c9b51d
commit
416fb4aa77
@ -1063,8 +1063,9 @@ WaitFor2EventWithTsc (
|
||||
// return EFI_TIMEOUT if no inputs
|
||||
//the function must be in menu class
|
||||
//so UpdatePointer(); => mPointer.Update(&gItemID, &Screen->mAction);
|
||||
EFI_STATUS WaitForInputEventPoll(REFIT_MENU_SCREEN& Screen, UINTN TimeoutDefault)
|
||||
EFI_STATUS WaitForInputEventPoll(REFIT_MENU_SCREEN* ScreenPtr, UINTN TimeoutDefault)
|
||||
{
|
||||
REFIT_MENU_SCREEN& Screen = *ScreenPtr;
|
||||
EFI_STATUS Status = EFI_SUCCESS;
|
||||
UINTN TimeoutRemain = TimeoutDefault * 100;
|
||||
|
||||
@ -1073,14 +1074,14 @@ EFI_STATUS WaitForInputEventPoll(REFIT_MENU_SCREEN& Screen, UINTN TimeoutDefault
|
||||
if (Status != EFI_TIMEOUT) {
|
||||
break;
|
||||
}
|
||||
UpdateAnime(Screen, &(Screen.FilmPlace)); //should be moved to REFIT_MENU_SCREEN class
|
||||
UpdateAnime(&Screen, &(Screen.FilmPlace)); //should be moved to REFIT_MENU_SCREEN class
|
||||
if (gSettings.PlayAsync) {
|
||||
CheckSyncSound();
|
||||
}
|
||||
TimeoutRemain--;
|
||||
if (!Screen.mPointer.isEmpty()) {
|
||||
if (!Screen.mPointer->isEmpty()) {
|
||||
Screen.mPointer->UpdatePointer();
|
||||
Status = Screen.mPointer->CheckMouseEvent(Screen); //out: gItemID, gAction
|
||||
Status = Screen.mPointer->CheckMouseEvent(&Screen); //out: gItemID, gAction
|
||||
if (Status != EFI_TIMEOUT) { //this check should return timeout if no mouse events occured
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user