[Horus] Revert to BMP bitmaps instead of PNG. It uses far less CPU

This commit is contained in:
Bertrand Songis
2016-03-01 19:01:31 +01:00
parent 8427e6ed04
commit 9a615adff7
29 changed files with 226 additions and 30 deletions
-14
View File
@@ -54,20 +54,6 @@ bool isFileAvailable(const char * filename, const char * directory)
return isFileAvailable(path);
}
char * getFileExtension(char * filename, int size)
{
int len = strlen(filename);
if (size != 0 && size < len) {
len = size;
}
for (int i=len; i>=len-LEN_FILE_EXTENSION; --i) {
if (filename[i] == '.') {
return &filename[i];
}
}
return NULL;
}
char * getFileIndex(char * filename, unsigned int & value)
{
value = 0;