Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. /**
  2. * set favicon
  3. */
  4. void
  5. gui_window_set_icon(struct gui_window *g, hlcache_handle *icon)
  6. {
  7. struct bitmap *icon_bitmap;
  8.  
  9. #ifdef WITH_BMP
  10. if (icon != NULL && content_get_type(icon) == CONTENT_ICO)
  11. nsico_set_bitmap_from_size(icon, 16, 16);
  12. #endif
  13.  
  14. icon_bitmap = (icon != NULL) ? content_get_bitmap(icon) : NULL;
  15.  
  16. fbtk_set_bitmap(favicon, icon_bitmap);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement