summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2b20874)
Unused ColorDepth was removed.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Tested-by: Christian Ehrhardt <ehrhardt@genua.de>
/** @file\r
FrameBufferBltLib - Library to perform blt operations on a frame buffer.\r
\r
/** @file\r
FrameBufferBltLib - Library to perform blt operations on a frame buffer.\r
\r
- Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#include <Library/FrameBufferBltLib.h>\r
\r
struct FRAME_BUFFER_CONFIGURE {\r
#include <Library/FrameBufferBltLib.h>\r
\r
struct FRAME_BUFFER_CONFIGURE {\r
- UINTN ColorDepth;\r
- UINTN WidthInBytes;\r
- UINTN BytesPerPixel;\r
- UINTN WidthInPixels;\r
- UINTN Height;\r
+ UINT32 WidthInBytes;\r
+ UINT32 BytesPerPixel;\r
+ UINT32 WidthInPixels;\r
+ UINT32 Height;\r
UINT8 *FrameBuffer;\r
EFI_GRAPHICS_PIXEL_FORMAT PixelFormat;\r
EFI_PIXEL_BITMASK PixelMasks;\r
UINT8 *FrameBuffer;\r
EFI_GRAPHICS_PIXEL_FORMAT PixelFormat;\r
EFI_PIXEL_BITMASK PixelMasks;\r
VOID\r
FrameBufferBltLibConfigurePixelFormat (\r
IN CONST EFI_PIXEL_BITMASK *BitMask,\r
VOID\r
FrameBufferBltLibConfigurePixelFormat (\r
IN CONST EFI_PIXEL_BITMASK *BitMask,\r
- OUT UINTN *BytesPerPixel,\r
+ OUT UINT32 *BytesPerPixel,\r
OUT INT8 *PixelShl,\r
OUT INT8 *PixelShr\r
)\r
OUT INT8 *PixelShl,\r
OUT INT8 *PixelShr\r
)\r
MergedMasks = (UINT32) (MergedMasks | Masks[3]);\r
\r
ASSERT (MergedMasks != 0);\r
MergedMasks = (UINT32) (MergedMasks | Masks[3]);\r
\r
ASSERT (MergedMasks != 0);\r
- *BytesPerPixel = (UINTN) ((HighBitSet32 (MergedMasks) + 7) / 8);\r
+ *BytesPerPixel = (UINT32) ((HighBitSet32 (MergedMasks) + 7) / 8);\r
DEBUG ((DEBUG_INFO, "Bytes per pixel: %d\n", *BytesPerPixel));\r
}\r
\r
DEBUG ((DEBUG_INFO, "Bytes per pixel: %d\n", *BytesPerPixel));\r
}\r
\r
)\r
{\r
CONST EFI_PIXEL_BITMASK *BitMask;\r
)\r
{\r
CONST EFI_PIXEL_BITMASK *BitMask;\r
+ UINT32 BytesPerPixel;\r
INT8 PixelShl[4];\r
INT8 PixelShr[4];\r
\r
INT8 PixelShl[4];\r
INT8 PixelShr[4];\r
\r
Configure->BytesPerPixel = BytesPerPixel;\r
Configure->PixelFormat = FrameBufferInfo->PixelFormat;\r
Configure->FrameBuffer = (UINT8*) FrameBuffer;\r
Configure->BytesPerPixel = BytesPerPixel;\r
Configure->PixelFormat = FrameBufferInfo->PixelFormat;\r
Configure->FrameBuffer = (UINT8*) FrameBuffer;\r
- Configure->WidthInPixels = (UINTN) FrameBufferInfo->HorizontalResolution;\r
- Configure->Height = (UINTN) FrameBufferInfo->VerticalResolution;\r
+ Configure->WidthInPixels = FrameBufferInfo->HorizontalResolution;\r
+ Configure->Height = FrameBufferInfo->VerticalResolution;\r
Configure->WidthInBytes = Configure->WidthInPixels * Configure->BytesPerPixel;\r
\r
return RETURN_SUCCESS;\r
Configure->WidthInBytes = Configure->WidthInPixels * Configure->BytesPerPixel;\r
\r
return RETURN_SUCCESS;\r