Richard Parker / EALCD
Revision:
6:4fe6f365cbeb
Parent:
1:f04bcaea1d60
--- a/widgets/EAImage.h	Tue Apr 27 23:13:21 2010 +0000
+++ b/widgets/EAImage.h	Thu May 06 23:32:14 2010 +0000
@@ -49,14 +49,22 @@
     inline bool isMask() { return _mask; }
     inline void setMask(bool value) { _mask = value; }
     
+    inline bool isCached() { return _cached; }
+    inline void setCached(bool value) { _cached = value; }
+
 private:
     char* _path;
     EAColor* _palette;
     unsigned int _dataOffset;
     EABMPHeader _header;
     bool _mask;
+    bool _cached;
+    char* _cache;
+    long int _size;
+    long int _pos;
     
     bool _loadHeader(const char* path);
+    bool _loadCache(FILE* fp);
     bool _loadPalette(FILE* fp);
     
     int _wordsInRow();
@@ -64,6 +72,9 @@
     int _xWordOffset(unsigned int x);
     unsigned short _getColourAtOffset(unsigned int word, int offset);
     
+    int _fseek(FILE* stream, long int offset, int origin);
+    size_t _fread(void* ptr, size_t size, size_t count, FILE* stream);
+    int _feof(FILE* stream);
 };
 
 #endif
\ No newline at end of file