1 /* 2 * PROJECT: FreeLoader 3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) 4 * PURPOSE: UI Video helpers for special effects. 5 * COPYRIGHT: Copyright 1998-2003 Brian Palmer <brianp@sginet.com> 6 */ 7 8 #pragma once 9 10 #include <pshpack1.h> 11 typedef struct _PALETTE_ENTRY 12 { 13 UCHAR Red; 14 UCHAR Green; 15 UCHAR Blue; 16 } PALETTE_ENTRY, *PPALETTE_ENTRY; 17 #include <poppack.h> 18 19 // extern PVOID VideoOffScreenBuffer; 20 21 PVOID VideoAllocateOffScreenBuffer(VOID); // Returns a pointer to an off-screen buffer sufficient for the current video mode 22 23 VOID VideoFreeOffScreenBuffer(VOID); 24 VOID VideoCopyOffScreenBufferToVRAM(VOID); 25 26 VOID VideoSavePaletteState(PPALETTE_ENTRY Palette, ULONG ColorCount); 27 VOID VideoRestorePaletteState(PPALETTE_ENTRY Palette, ULONG ColorCount); 28 29 VOID VideoSetAllColorsToBlack(ULONG ColorCount); 30 VOID VideoFadeIn(PPALETTE_ENTRY Palette, ULONG ColorCount); 31 VOID VideoFadeOut(ULONG ColorCount); 32