X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OptionRomPkg%2FLibrary%2FFrameBufferBltLib%2FFrameBufferBltLib.c;h=955ae3dfeac99eda6923f711ac480c9b8b80792b;hp=cfd5212d482478eed64e68c986d11352f83fd0ed;hb=cef89a58ee126ea3c46be6fc60685c7c2e6eae33;hpb=8990b82f4fdf58420ffdb0f7f1a9c100aac8c1ae diff --git a/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c b/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c index cfd5212d48..955ae3dfea 100644 --- a/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c +++ b/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c @@ -1,8 +1,8 @@ /** @file FrameBufferBltLib - Library to perform blt operations on a frame buffer. - Copyright (c) 2007 - 2011, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.
+ 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 @@ -66,7 +66,7 @@ ConfigurePixelBitMaskFormat ( MergedMasks = (UINT32) (MergedMasks | Masks[3]); ASSERT (MergedMasks != 0); - mBltLibBytesPerPixel = (HighBitSet32 (MergedMasks) + 7) / 8; + mBltLibBytesPerPixel = (UINTN) ((HighBitSet32 (MergedMasks) + 7) / 8); DEBUG ((EFI_D_INFO, "Bytes per pixel: %d\n", mBltLibBytesPerPixel)); @@ -236,7 +236,6 @@ BltLibVideoFill ( ) { UINTN DstY; - VOID *BltMemSrc; VOID *BltMemDst; UINTN X; UINT8 Uint8; @@ -347,7 +346,6 @@ BltLibVideoFill ( ); X = X + MIN (X, Width - X); } - BltMemSrc = (VOID *) mBltLibLineBuffer; LineBufferReady = TRUE; } CopyMem (BltMemDst, mBltLibLineBuffer, WidthInBytes);