Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diasurgical/devilution
/ InitPalette
Function
InitPalette
SourceX/dx.cpp:167–173 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
165
}
166
167
void InitPalette()
168
{
169
palette = SDL_AllocPalette(256);
170
if (palette == NULL) {
171
ErrSdl();
172
}
173
}
174
175
void BltFast(SDL_Rect *src_rect, SDL_Rect *dst_rect)
176
{
Callers
1
palette_init
Function · 0.85
Calls
1
SDL_AllocPalette
Function · 0.85
Tested by
no test coverage detected