/*++
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
#include "UnixUga.h"
EFI_UNIX_THUNK_PROTOCOL *mUnix;
-static EFI_EVENT mUgaScreenExitBootServicesEvent;
+EFI_EVENT mUgaScreenExitBootServicesEvent;
-STATIC
EFI_STATUS
UnixUgaStartWindow (
IN UGA_PRIVATE_DATA *Private,
IN UINT32 RefreshRate
);
-STATIC
VOID
EFIAPI
KillNtUgaThread (
UGA_PRIVATE_DATA *Private;
EFI_TPL OriginalTPL;
EFI_STATUS Status;
+ UGA_BLT_ARGS UgaBltArgs;
Private = UGA_DRAW_PRIVATE_DATA_FROM_THIS (This);
//
OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);
+ //
+ // Pack UGA Draw protocol parameters to UGA_BLT_ARGS structure to adapt to
+ // UgaBlt() API of Unix UGA IO protocol.
+ //
+ UgaBltArgs.DestinationX = DestinationX;
+ UgaBltArgs.DestinationY = DestinationY;
+ UgaBltArgs.Height = Height;
+ UgaBltArgs.Width = Width;
+ UgaBltArgs.SourceX = SourceX;
+ UgaBltArgs.SourceY = SourceY;
+ UgaBltArgs.Delta = Delta;
Status = Private->UgaIo->UgaBlt (Private->UgaIo,
BltBuffer,
BltOperation,
- SourceX, SourceY,
- DestinationX, DestinationY,
- Width, Height,
- Delta);
+ &UgaBltArgs
+ );
gBS->RestoreTPL (OriginalTPL);
}
-STATIC
EFI_STATUS
UnixUgaStartWindow (
IN UGA_PRIVATE_DATA *Private,
UnixUgaInitializeSimpleTextInForWindow (Private);
+ UnixUgaInitializeSimplePointerForWindow (Private);
+
return EFI_SUCCESS;
}
return EFI_SUCCESS;
}
-STATIC
VOID
EFIAPI
KillNtUgaThread (