Testing GXA icon blit; Cleanup FB and pictureviwer code; This is work in progress, any bugs possible

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@258 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2010-02-04 20:18:42 +00:00
parent d974484c3e
commit 2f6462c65d
12 changed files with 319 additions and 524 deletions

View File

@@ -116,9 +116,7 @@ class CFrameBuffer
int cache_size;
public:
#ifndef FB_USE_PALETTE
fb_pixel_t realcolor[256];
#endif
~CFrameBuffer();
@@ -156,11 +154,7 @@ class CFrameBuffer
//paint functions
inline void paintPixel(fb_pixel_t * const dest, const uint8_t color) const
{
#ifdef FB_USE_PALETTE
*dest = color;
#else
*dest = realcolor[color];
#endif
};
void paintPixel(int x, int y, const fb_pixel_t col);
@@ -209,7 +203,7 @@ class CFrameBuffer
void SaveScreen(int x, int y, int dx, int dy, fb_pixel_t * const memp);
void RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * const memp);
void ClearFrameBuffer();
void Clear();
void showFrame(const std::string & filename);
bool loadBackgroundPic(const std::string & filename, bool show = true);
bool Lock(void);
@@ -221,6 +215,7 @@ class CFrameBuffer
#else
inline void waitForIdle(void) {};
#endif
bool blitToPrimary(unsigned int * data, int dx, int dy, int sw, int sh);
};