From b84c69472b620f704c2af7a3eef459033f4ead4a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 5 Apr 2015 17:38:20 +0200 Subject: [PATCH] CFrameBuffer: add comment for unsolved issue on full icon cache Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ba6f26525551b3bf9c12b6632f9d9d838f38fd1f Author: Thilo Graf Date: 2015-04-05 (Sun, 05 Apr 2015) --- src/driver/framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index 6060ddb39..19f927b09 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -1075,7 +1075,7 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in data = g_PicViewer->getIcon(newname, &width, &height); - if(data) { + if(data) { //TODO: intercepting of possible full icon cache, that could cause strange behavior while painting of uncached icons int dsize = width*height*sizeof(fb_pixel_t); //printf("CFrameBuffer::paintIcon: %s found, data %x size %d x %d\n", newname.c_str(), data, width, height);fflush(stdout); if(cache_size+dsize < ICON_CACHE_SIZE) {