1 /* 2 * PROJECT: ReactOS Boot Video Driver for Original Xbox 3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 * PURPOSE: Arch-specific header file 5 * COPYRIGHT: Copyright 2004 Gé van Geldorp <gvg@reactos.org> 6 * Copyright 2005 Filip Navara <navaraf@reactos.org> 7 * Copyright 2020 Stanislav Motylkov <x86corez@gmail.com> 8 */ 9 10 #ifndef _BOOTVID_XBOX_H_ 11 #define _BOOTVID_XBOX_H_ 12 13 #pragma once 14 15 #define BB_OFFSET(x, y) ((y) * SCREEN_WIDTH + (x)) 16 #define FB_OFFSET(x, y) (((PanV + (y)) * FrameBufferWidth + PanH + (x)) * BytesPerPixel) 17 18 VOID 19 InitPaletteWithTable( 20 _In_ PULONG Table, 21 _In_ ULONG Count); 22 23 VOID 24 PrepareForSetPixel(VOID); 25 26 VOID 27 SetPixel( 28 _In_ ULONG Left, 29 _In_ ULONG Top, 30 _In_ UCHAR Color); 31 32 VOID 33 PreserveRow( 34 _In_ ULONG CurrentTop, 35 _In_ ULONG TopDelta, 36 _In_ BOOLEAN Restore); 37 38 VOID 39 DoScroll( 40 _In_ ULONG Scroll); 41 42 VOID 43 DisplayCharacter( 44 _In_ CHAR Character, 45 _In_ ULONG Left, 46 _In_ ULONG Top, 47 _In_ ULONG TextColor, 48 _In_ ULONG BackColor); 49 50 #endif /* _BOOTVID_XBOX_H_ */ 51