summaryrefslogtreecommitdiff
path: root/UnixPkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2010-07-30 08:06:09 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2010-07-30 08:06:09 +0000
commitab5255fc7c531f29541605916d8dac152ce0d691 (patch)
treedc532362501b5ceafc345001e659d0a6c73b2c43 /UnixPkg
parent4ad858e0f35e1dc69fe763ec342639761db6046c (diff)
downloadedk2-platforms-ab5255fc7c531f29541605916d8dac152ce0d691.tar.xz
Update UnixUgaScreen module to adapt to the change in Unix UGA protocol interface.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10721 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg')
-rw-r--r--UnixPkg/UnixUgaDxe/UnixUgaScreen.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/UnixPkg/UnixUgaDxe/UnixUgaScreen.c b/UnixPkg/UnixUgaDxe/UnixUgaScreen.c
index 8a2db70ce9..85c104331b 100644
--- a/UnixPkg/UnixUgaDxe/UnixUgaScreen.c
+++ b/UnixPkg/UnixUgaDxe/UnixUgaScreen.c
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+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
@@ -230,6 +230,7 @@ UnixUgaBlt (
UGA_PRIVATE_DATA *Private;
EFI_TPL OriginalTPL;
EFI_STATUS Status;
+ UGA_BLT_ARGS UgaBltArgs;
Private = UGA_DRAW_PRIVATE_DATA_FROM_THIS (This);
@@ -255,14 +256,22 @@ UnixUgaBlt (
// doing this operation.
//
OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);
-
+
+ //
+ // Package UGA Draw protocol parameters to UGA_BLT_ARGS structure to adapt to 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);