aboutsummaryrefslogtreecommitdiffstats
path: root/UefiMonitorTest/Graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'UefiMonitorTest/Graphics.h')
-rw-r--r--UefiMonitorTest/Graphics.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/UefiMonitorTest/Graphics.h b/UefiMonitorTest/Graphics.h
index d822e0e..37484b0 100644
--- a/UefiMonitorTest/Graphics.h
+++ b/UefiMonitorTest/Graphics.h
@@ -7,6 +7,8 @@
#include <Protocol/SimpleTextIn.h>
#include <Protocol/SimplePointer.h>
+#define GET_UCOLOR(Color) (*(UINT32 *)Color)
+
#define PUT_PUXEL(Graphics, X, Y, Icolor) \
Graphics->BackBuffer[X + (Y * Graphics->Pitch)] = Icolor
@@ -113,6 +115,22 @@ ForgetGraphicsInfo (
);
/**
+ Get a color that doesn't depend on pixel format, i.e.
+ independent color.
+
+ @param[in] Graphics A graphics context.
+ @param[in] Ucolor A GRAPHICS_PIXEL_COLOR, which is
+ represented as unsigned 32-bit.
+
+ @retval UINT32 A color in independent format.
+**/
+UINT32
+GetIcolor (
+ IN GRAPHICS_CONTEXT *Graphics,
+ IN UINT32 Ucolor
+ );
+
+/**
Draw a line using Bresenham's algorithm
@retval VOID