Go to the source code of this file.
|
NTSTATUS | ConsoleGraphicalSetTextState (_In_ PBL_GRAPHICS_CONSOLE Console, _In_ ULONG Mask, _In_ PBL_DISPLAY_STATE TextState) |
|
NTSTATUS | ConsoleGraphicalConstruct (_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole) |
|
VOID | ConsolepClearBuffer (_In_ PUCHAR FrameBuffer, _In_ ULONG Width, _In_ PUCHAR FillColor, _In_ ULONG Height, _In_ ULONG ScanlineWidth, _In_ ULONG PixelDepth) |
|
NTSTATUS | ConsolepConvertColorToPixel (_In_ BL_COLOR Color, _Out_ PUCHAR Pixel) |
|
NTSTATUS | ConsoleGraphicalClearPixels (_In_ PBL_GRAPHICS_CONSOLE Console, _In_ ULONG Color) |
|
NTSTATUS | ConsoleGraphicalClearText (_In_ PBL_GRAPHICS_CONSOLE Console, _In_ BOOLEAN LineOnly) |
|
BOOLEAN | ConsoleGraphicalIsEnabled (_In_ PBL_GRAPHICS_CONSOLE Console) |
|
VOID | ConsoleGraphicalDestruct (_In_ PBL_GRAPHICS_CONSOLE Console) |
|
NTSTATUS | ConsoleGraphicalReinitialize (_In_ PBL_GRAPHICS_CONSOLE Console) |
|
NTSTATUS | ConsoleGraphicalEnable (_In_ PBL_GRAPHICS_CONSOLE Console, _In_ BOOLEAN Enable) |
|
NTSTATUS | ConsoleGraphicalGetGraphicalResolution (_In_ PBL_GRAPHICS_CONSOLE Console, _In_ PBL_DISPLAY_MODE DisplayMode) |
|
NTSTATUS | ConsoleGraphicalGetOriginalResolution (_In_ PBL_GRAPHICS_CONSOLE Console, _In_ PBL_DISPLAY_MODE DisplayMode) |
|
◆ ConsoleGraphicalClearPixels()
Definition at line 275 of file guicons.c.
279{
281
282
283 if (
Console->TextConsole.Active)
284 {
285
287 }
288 else
289 {
290
292 }
293
294
296}
NTSTATUS ConsoleFirmwareGraphicalClear(_In_ PBL_GRAPHICS_CONSOLE Console, _In_ ULONG Color)
#define STATUS_UNSUCCESSFUL
Referenced by BfClearScreen().
◆ ConsoleGraphicalClearText()
Definition at line 299 of file guicons.c.
303{
304
305 if (
Console->TextConsole.Active)
306 {
307
309 }
310
311
312 if (LineOnly)
313 {
315 }
316
317
319}
NTSTATUS BfClearScreen(_In_ PBL_GRAPHICS_CONSOLE Console)
NTSTATUS BfClearToEndOfLine(_In_ PBL_GRAPHICS_CONSOLE Console)
NTSTATUS ConsoleFirmwareTextClear(_In_ PBL_TEXT_CONSOLE Console, _In_ BOOLEAN LineOnly)
◆ ConsoleGraphicalConstruct()
Definition at line 58 of file guicons.c.
61{
63
64
67 {
70 }
71
72
74
75
78 {
79
83 {
84
88 }
89 }
90
91
94 {
95
100 }
101
102
103 GraphicsConsole->FgColor = GraphicsConsole->TextConsole.State.FgColor;
104 GraphicsConsole->BgColor = GraphicsConsole->TextConsole.State.BgColor;
106}
VOID ConsoleTextLocalDestruct(_In_ struct _BL_TEXT_CONSOLE *Console)
VOID EfiPrintf(_In_ PWCHAR Format,...)
NTSTATUS ConsoleFirmwareGraphicalEnable(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole)
NTSTATUS ConsoleEfiGraphicalOpenProtocol(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole, _In_ BL_GRAPHICS_CONSOLE_TYPE Type)
VOID ConsoleFirmwareGraphicalClose(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole)
NTSTATUS ConsoleTextLocalConstruct(_In_ PBL_TEXT_CONSOLE TextConsole, _In_ BOOLEAN Activate)
#define NT_SUCCESS(StatCode)
BL_GRAPHICS_CONSOLE_VTABLE ConsoleGraphicalVtbl
BL_TEXT_CONSOLE_VTABLE Text
Referenced by DsppInitialize().
◆ ConsoleGraphicalDestruct()
Definition at line 331 of file guicons.c.
334{
335
336 if (
Console->TextConsole.Active)
337 {
338
340 }
341
342
344
345
347}
VOID ConsoleFirmwareGraphicalDisable(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole)
◆ ConsoleGraphicalEnable()
Definition at line 369 of file guicons.c.
373{
376
377
380 {
381
383 {
384
387 {
389 }
390
391
392 if (
Console->TextConsole.Active)
393 {
394
397 }
398
399
402 }
403 else
404 {
405
407 {
408
411 {
413 }
414
415
417 }
418
419
421 }
422 }
423
424
426}
NTSTATUS ConsoleFirmwareTextOpen(_In_ PBL_TEXT_CONSOLE TextConsole)
VOID ConsoleFirmwareTextClose(_In_ PBL_TEXT_CONSOLE TextConsole)
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
_In_ ULONG _In_ BOOLEAN Active
◆ ConsoleGraphicalGetGraphicalResolution()
Definition at line 429 of file guicons.c.
433{
434
435 if (
Console->TextConsole.Active)
436 {
437
439 }
440
441
444}
static VIDEODISPLAYMODE DisplayMode
◆ ConsoleGraphicalGetOriginalResolution()
Definition at line 447 of file guicons.c.
451{
452
453 if (
Console->TextConsole.Active)
454 {
455
457 }
458
459
462}
◆ ConsoleGraphicalIsEnabled()
Definition at line 322 of file guicons.c.
325{
326
327 return !
Console->TextConsole.Active;
328}
◆ ConsoleGraphicalReinitialize()
Definition at line 350 of file guicons.c.
353{
354
355 if (
Console->TextConsole.Active)
356 {
357
359 }
360
361
363
364
366}
NTSTATUS ConsoleTextLocalReinitialize(_In_ struct _BL_TEXT_CONSOLE *Console)
◆ ConsoleGraphicalSetTextState()
Definition at line 37 of file guicons.c.
42{
43
44 if (
Console->TextConsole.Active)
45 {
46
49 TextState);
50 }
51
52
55}
NTSTATUS ConsoleFirmwareTextSetState(_In_ PBL_TEXT_CONSOLE TextConsole, _In_ UCHAR Mask, _In_ PBL_DISPLAY_STATE State)
#define STATUS_NOT_IMPLEMENTED
◆ ConsolepClearBuffer()
Definition at line 109 of file guicons.c.
117{
118 PUCHAR Scanline, Current, FrameBufferEnd, LineEnd;
120
121
123
124
126
127
129
130
132 if (Scanline)
133 {
134
135 Current = Scanline;
137 {
138
141 }
142
143
145 {
146
149 }
150 }
151 else
152 {
156 {
158 {
160 do
161 {
164 }
166 }
167
169 }
170 }
171}
PVOID BlMmAllocateHeap(_In_ SIZE_T Size)
#define RtlCopyMemory(Destination, Source, Length)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
static ULONG BytesPerPixel
Referenced by ConsoleFirmwareGraphicalClear().
◆ ConsolepConvertColorToPixel()
Definition at line 174 of file guicons.c.
178{
180
181
183
184
186 {
188 Pixel[1] = 0;
189 Pixel[2] = 0;
190 Pixel[0] = 0;
191 break;
193 Pixel[1] = 0;
194 Pixel[2] = 0;
195 Pixel[0] = 0x7F;
196 break;
198 Pixel[1] = 0x7F;
199 Pixel[2] = 0;
200 Pixel[0] = 0;
201 break;
203 Pixel[1] = 0x7F;
204 Pixel[2] = 0;
205 Pixel[0] = 0x7F;
206 break;
208 Pixel[1] = 0;
209 Pixel[2] = 0x7F;
210 Pixel[0] = 0x7F;
211 break;
213 Pixel[1] = 0;
214 Pixel[2] = 0x7F;
215 Pixel[0] = 0x7F;
216 break;
218 Pixel[1] = 0x3F;
219 Pixel[2] = 0x7F;
220 Pixel[0] = 0;
221 break;
223 Pixel[1] = 0xBFu;
224 Pixel[2] = 0xBFu;
225 *Pixel = 0xBFu;
226 break;
228 Pixel[1] = 0x7F;
229 Pixel[2] = 0x7F;
230 Pixel[0] = 0x7F;
231 break;
233 Pixel[1] = 0;
234 Pixel[2] = 0;
235 Pixel[0] = 0xFF;
236 break;
238 Pixel[1] = 0xFF;
239 Pixel[2] = 0;
240 Pixel[0] = 0;
241 break;
243 Pixel[1] = 0xFF;
244 Pixel[2] = 0;
245 Pixel[0] = 0xFF;
246 break;
248 Pixel[1] = 0;
249 Pixel[2] = 0xFF;
250 Pixel[0] = 0;
251 break;
253 Pixel[1] = 0;
254 Pixel[2] = 0xFF;
255 Pixel[0] = 0xFF;
256 break;
258 Pixel[1] = 0xFF;
259 Pixel[2] = 0xFF;
260 Pixel[0] = 0;
261 break;
263 Pixel[1] = 0xFF;
264 Pixel[2] = 0xFF;
265 Pixel[0] = 0xFF;
266 break;
267 default:
269 break;
270 }
272}
#define STATUS_INVALID_PARAMETER
Referenced by ConsoleFirmwareGraphicalClear().
◆ ConsoleGraphicalVtbl
Initial value:=
{
{
},
}
NTSTATUS(* PCONSOLE_SET_TEXT_STATE)(_In_ struct _BL_TEXT_CONSOLE *Console, _In_ ULONG Flags, _In_ struct _BL_DISPLAY_STATE *TextState)
NTSTATUS(* PCONSOLE_REINITIALIZE)(_In_ struct _BL_TEXT_CONSOLE *Console)
NTSTATUS ConsoleTextBaseGetTextState(_In_ struct _BL_TEXT_CONSOLE *Console, _Out_ PBL_DISPLAY_STATE TextState)
NTSTATUS(* PCONSOLE_CLEAR_TEXT)(_In_ struct _BL_TEXT_CONSOLE *Console, _In_ BOOLEAN LineOnly)
VOID(* PCONSOLE_DESTRUCT)(_In_ struct _BL_TEXT_CONSOLE *Console)
NTSTATUS ConsoleGraphicalReinitialize(_In_ PBL_GRAPHICS_CONSOLE Console)
NTSTATUS ConsoleGraphicalGetOriginalResolution(_In_ PBL_GRAPHICS_CONSOLE Console, _In_ PBL_DISPLAY_MODE DisplayMode)
VOID ConsoleGraphicalDestruct(_In_ PBL_GRAPHICS_CONSOLE Console)
NTSTATUS ConsoleGraphicalClearText(_In_ PBL_GRAPHICS_CONSOLE Console, _In_ BOOLEAN LineOnly)
BOOLEAN ConsoleGraphicalIsEnabled(_In_ PBL_GRAPHICS_CONSOLE Console)
NTSTATUS ConsoleGraphicalEnable(_In_ PBL_GRAPHICS_CONSOLE Console, _In_ BOOLEAN Enable)
NTSTATUS ConsoleGraphicalSetTextState(_In_ PBL_GRAPHICS_CONSOLE Console, _In_ ULONG Mask, _In_ PBL_DISPLAY_STATE TextState)
NTSTATUS ConsoleGraphicalGetGraphicalResolution(_In_ PBL_GRAPHICS_CONSOLE Console, _In_ PBL_DISPLAY_MODE DisplayMode)
Definition at line 15 of file guicons.c.
Referenced by ConsoleGraphicalConstruct().