SHARE
TWEET

Untitled

a guest Oct 20th, 2017 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (fh->get_pic(name.c_str (), &buffer, &x, &y) == FH_ERROR_OK)
  2.         {
  3.             //printf("CFrameBuffer::getImage: decoded %s, %d x %d \n", name.c_str (), x, y);
  4.            
  5.             if(x != width || y != height)
  6.             {
  7.                 //buffer = color_average_resize (buffer, x, y, width, height);
  8.                 buffer = Resize(buffer, x, y, width, height);
  9.                 x = width;
  10.                 y = height;
  11.             }
  12.            
  13.             ret = (fb_pixel_t *)convertRGB2FB(buffer, x, y, convertSetupAlpha2Alpha(g_settings.infobar_alpha));
  14.             free(buffer);
  15.         }
RAW Paste Data
Top