MCPcopy Create free account
hub / github.com/NetHack/NetHack / vesa_SetPalette

Function vesa_SetPalette

sys/msdos/vidvesa.c:1924–1932  ·  view source on GitHub ↗

* Initialize the VGA palette with the desired colours. This * must be a series of 720 bytes for use with a card in 256 * colour mode. The first 240 palette entries are used by the * tile set; the last 16 are reserved for text. * */

Source from the content-addressed store, hash-verified

1922 *
1923 */
1924static boolean
1925vesa_SetPalette(const struct Pixel *palette)
1926{
1927 if (vesa_pixel_size == 8) {
1928 return vesa_SetHardPalette(palette);
1929 } else {
1930 return vesa_SetSoftPalette(palette);
1931 }
1932}
1933
1934static boolean
1935vesa_SetHardPalette(const struct Pixel *palette)

Callers 1

vesa_InitFunction · 0.85

Calls 2

vesa_SetHardPaletteFunction · 0.85
vesa_SetSoftPaletteFunction · 0.85

Tested by

no test coverage detected