Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (fh->get_pic(name.c_str (), &buffer, &x, &y) == FH_ERROR_OK)
- {
- //printf("CFrameBuffer::getImage: decoded %s, %d x %d \n", name.c_str (), x, y);
- if(x != width || y != height)
- {
- //buffer = color_average_resize (buffer, x, y, width, height);
- buffer = Resize(buffer, x, y, width, height);
- x = width;
- y = height;
- }
- ret = (fb_pixel_t *)convertRGB2FB(buffer, x, y, convertSetupAlpha2Alpha(g_settings.infobar_alpha));
- free(buffer);
- }
Add Comment
Please, Sign In to add comment