summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/inlinepics_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/inlinepics_p.h b/library/inlinepics_p.h
index daa7413..c796326 100644
--- a/library/inlinepics_p.h
+++ b/library/inlinepics_p.h
@@ -3684,57 +3684,57 @@ static struct EmbedImage {
3684 { 14, 14, 32, (const unsigned char*)quit_icon_data, 0, 0, TRUE, "quit_icon" }, 3684 { 14, 14, 32, (const unsigned char*)quit_icon_data, 0, 0, TRUE, "quit_icon" },
3685 { 15, 15, 32, (const unsigned char*)repeat_data, 0, 0, TRUE, "repeat" }, 3685 { 15, 15, 32, (const unsigned char*)repeat_data, 0, 0, TRUE, "repeat" },
3686 { 14, 14, 8, (const unsigned char*)reset_data, 3, reset_ctable, TRUE, "reset" }, 3686 { 14, 14, 8, (const unsigned char*)reset_data, 3, reset_ctable, TRUE, "reset" },
3687 { 16, 16, 32, (const unsigned char*)right_data, 0, 0, TRUE, "right" }, 3687 { 16, 16, 32, (const unsigned char*)right_data, 0, 0, TRUE, "right" },
3688 { 14, 14, 32, (const unsigned char*)rotate_data, 0, 0, TRUE, "rotate" }, 3688 { 14, 14, 32, (const unsigned char*)rotate_data, 0, 0, TRUE, "rotate" },
3689 { 14, 14, 32, (const unsigned char*)start_data, 0, 0, TRUE, "start" }, 3689 { 14, 14, 32, (const unsigned char*)start_data, 0, 0, TRUE, "start" },
3690 { 14, 14, 32, (const unsigned char*)stop_data, 0, 0, TRUE, "stop" }, 3690 { 14, 14, 32, (const unsigned char*)stop_data, 0, 0, TRUE, "stop" },
3691 { 16, 16, 32, (const unsigned char*)style_data, 0, 0, TRUE, "style" }, 3691 { 16, 16, 32, (const unsigned char*)style_data, 0, 0, TRUE, "style" },
3692 { 16, 16, 32, (const unsigned char*)table_pattern_data, 0, 0, TRUE, "table_pattern" }, 3692 { 16, 16, 32, (const unsigned char*)table_pattern_data, 0, 0, TRUE, "table_pattern" },
3693 { 16, 16, 8, (const unsigned char*)tgz_data, 7, tgz_ctable, TRUE, "tgz" }, 3693 { 16, 16, 8, (const unsigned char*)tgz_data, 7, tgz_ctable, TRUE, "tgz" },
3694 { 14, 14, 32, (const unsigned char*)toys_data, 0, 0, TRUE, "toys" }, 3694 { 14, 14, 32, (const unsigned char*)toys_data, 0, 0, TRUE, "toys" },
3695 { 16, 16, 8, (const unsigned char*)trash_data, 10, trash_ctable, TRUE, "trash" }, 3695 { 16, 16, 8, (const unsigned char*)trash_data, 10, trash_ctable, TRUE, "trash" },
3696 { 16, 16, 8, (const unsigned char*)txt_data, 41, txt_ctable, TRUE, "txt" }, 3696 { 16, 16, 8, (const unsigned char*)txt_data, 41, txt_ctable, TRUE, "txt" },
3697 { 16, 16, 32, (const unsigned char*)underline_data, 0, 0, TRUE, "underline" }, 3697 { 16, 16, 32, (const unsigned char*)underline_data, 0, 0, TRUE, "underline" },
3698 { 14, 14, 32, (const unsigned char*)uninstall_data, 0, 0, TRUE, "uninstall" }, 3698 { 14, 14, 32, (const unsigned char*)uninstall_data, 0, 0, TRUE, "uninstall" },
3699 { 14, 14, 8, (const unsigned char*)uninstalled_data, 6, uninstalled_ctable, TRUE, "uninstalled" }, 3699 { 14, 14, 8, (const unsigned char*)uninstalled_data, 6, uninstalled_ctable, TRUE, "uninstalled" },
3700 { 14, 14, 32, (const unsigned char*)up_data, 0, 0, TRUE, "up" }, 3700 { 14, 14, 32, (const unsigned char*)up_data, 0, 0, TRUE, "up" },
3701 { 14, 14, 32, (const unsigned char*)volume_data, 0, 0, TRUE, "volume" }, 3701 { 14, 14, 32, (const unsigned char*)volume_data, 0, 0, TRUE, "volume" },
3702 { 14, 14, 32, (const unsigned char*)wait_data, 0, 0, TRUE, "wait" }, 3702 { 14, 14, 32, (const unsigned char*)wait_data, 0, 0, TRUE, "wait" },
3703 { 14, 14, 32, (const unsigned char*)week_data, 0, 0, TRUE, "week" }, 3703 { 14, 14, 32, (const unsigned char*)week_data, 0, 0, TRUE, "week" },
3704 { 14, 14, 32, (const unsigned char*)wordgame_data, 0, 0, TRUE, "wordgame" }, 3704 { 14, 14, 32, (const unsigned char*)wordgame_data, 0, 0, TRUE, "wordgame" },
3705 { 9, 8, 8, (const unsigned char*)xtopowerofy_data, 2, xtopowerofy_ctable, TRUE, "xtopowerofy" }, 3705 { 9, 8, 8, (const unsigned char*)xtopowerofy_data, 2, xtopowerofy_ctable, TRUE, "xtopowerofy" },
3706 { 13, 11, 8, (const unsigned char*)ythrootofx_data, 2, ythrootofx_ctable, TRUE, "ythrootofx" }, 3706 { 13, 11, 8, (const unsigned char*)ythrootofx_data, 2, ythrootofx_ctable, TRUE, "ythrootofx" },
3707 { 20, 20, 8, (const unsigned char*)zoom_data, 7, zoom_ctable, TRUE, "zoom" }, 3707 { 20, 20, 8, (const unsigned char*)zoom_data, 7, zoom_ctable, TRUE, "zoom" },
3708}; 3708};
3709 3709
3710static int cmpEmbedImage(const void *a, const void *b) 3710static int cmpEmbedImage(const void *a, const void *b)
3711{ 3711{
3712 const EmbedImage* ea = (const EmbedImage*)a; 3712 const EmbedImage* ea = (const EmbedImage*)a;
3713 const EmbedImage* eb = (const EmbedImage*)b; 3713 const EmbedImage* eb = (const EmbedImage*)b;
3714 return strcmp(ea->name,eb->name); 3714 return strcmp(ea->name,eb->name);
3715} 3715}
3716inline const QImage& qembed_findImage(const char* name) 3716inline static const QImage& qembed_findImage(const char* name)
3717{ 3717{
3718 EmbedImage key; key.name = name; 3718 EmbedImage key; key.name = name;
3719 EmbedImage* r = (EmbedImage*)bsearch( &key, embed_image_vec, 3719 EmbedImage* r = (EmbedImage*)bsearch( &key, embed_image_vec,
3720 sizeof(embed_image_vec)/sizeof(EmbedImage), sizeof(EmbedImage), cmpEmbedImage ); 3720 sizeof(embed_image_vec)/sizeof(EmbedImage), sizeof(EmbedImage), cmpEmbedImage );
3721 QImage* img; 3721 QImage* img;
3722 if ( r ) { 3722 if ( r ) {
3723 img = new QImage((uchar*)r->data, 3723 img = new QImage((uchar*)r->data,
3724 r->width, 3724 r->width,
3725 r->height, 3725 r->height,
3726 r->depth, 3726 r->depth,
3727 (QRgb*)r->colorTable, 3727 (QRgb*)r->colorTable,
3728 r->numColors, 3728 r->numColors,
3729 QImage::BigEndian 3729 QImage::BigEndian
3730 ); 3730 );
3731 if ( r->alpha ) 3731 if ( r->alpha )
3732 img->setAlphaBuffer(TRUE); 3732 img->setAlphaBuffer(TRUE);
3733 } else { 3733 } else {
3734 static QImage dummy; 3734 static QImage dummy;
3735 img = &dummy; 3735 img = &dummy;
3736 } 3736 }
3737 return *img; 3737 return *img;
3738} 3738}
3739 3739
3740#endif 3740#endif