From: Mart Raudsepp Date: Sat, 4 Feb 2006 12:39:23 +0000 (+0000) Subject: Optimize (for size) the cross_xpm used for the X button in wxMiniFrame. We use only... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/07d04e37fdffc1bafdadaee417244c3045b760b0 Optimize (for size) the cross_xpm used for the X button in wxMiniFrame. We use only 2 colors, so don't declare 16 of them. Also swap the characters used to make the X visible in source code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index 27d3ec2e4a..e31c8d0d60 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -248,29 +248,15 @@ static void gtk_button_clicked_callback( GtkWidget *WXUNUSED(widget), wxMiniFram static const char *cross_xpm[] = { /* columns rows colors chars-per-pixel */ -"5 5 16 1", -" c Gray0", -". c #bf0000", -"X c #00bf00", -"o c #bfbf00", -"O c #0000bf", -"+ c #bf00bf", -"@ c #00bfbf", -"# c None", -"$ c #808080", -"% c Red", -"& c Green", -"* c Yellow", -"= c Blue", -"- c Magenta", -"; c Cyan", -": c Gray100", +"5 5 2 1", +"# c Gray0", +" c None", /* pixels */ -" ### ", -"# # #", -"## ##", -"# # #", -" ### ", +"# #", +" # # ", +" # ", +" # # ", +"# #", }; IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame,wxFrame)