MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / FLoadBmp

Function FLoadBmp

xdevice.cpp:242–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240// Load a 24 bit bitmap given a filename.
241
242flag FLoadBmp(CONST char *szFile, Bitmap *bmp, flag fNoHeader)
243{
244 FILE *file;
245 flag fRet;
246
247 file = FileOpen(szFile, 3, NULL);
248 if (file == NULL)
249 return fFalse;
250 fRet = FReadBmp(bmp, file, fNoHeader);
251 fclose(file);
252 return fRet;
253}
254
255
256// Write a 24 bit bitmap to a previously opened file, in the 24 bit bitmap

Callers 5

NProcessSwitchesXFunction · 0.85
DlgOpenChartFunction · 0.85
FFilePasteFunction · 0.85
FBmpDrawMapFunction · 0.85
FBmpDrawMap2Function · 0.85

Calls 2

FileOpenFunction · 0.85
FReadBmpFunction · 0.85

Tested by

no test coverage detected