Instead of generating wxicon_xpm.xpm from icon.ico (which is very low-res)
supply a 48x48 xpm to be included as the application icon. There's probably a better way to do this, like figuring out what the typical application icon size is and supplying different sizes. Originally committed to SVN as r2702.
This commit is contained in:
parent
300d71d7d2
commit
bd78a5c60e
5 changed files with 307 additions and 6 deletions
|
@ -2,4 +2,6 @@ noinst_LIBRARIES = libresrc.a
|
|||
nodist_libresrc_a_SOURCES = resrc.cpp
|
||||
noinst_HEADERS = libresrc.h
|
||||
|
||||
EXTRA_DIST = resrc.cpp
|
||||
EXTRA_DIST = \
|
||||
resrc.cpp \
|
||||
wxicon_xpm.xpm
|
||||
|
|
299
aegisub/libresrc/wxicon_xpm.xpm
Normal file
299
aegisub/libresrc/wxicon_xpm.xpm
Normal file
|
@ -0,0 +1,299 @@
|
|||
/* XPM */
|
||||
static char *wxicon_xpm[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"48 48 245 2",
|
||||
" c #020101",
|
||||
". c #090202",
|
||||
"X c #03050B",
|
||||
"o c #0B090B",
|
||||
"O c #140303",
|
||||
"+ c #1A0404",
|
||||
"@ c #110C0C",
|
||||
"# c #180909",
|
||||
"$ c #000512",
|
||||
"% c #070910",
|
||||
"& c #0C0E14",
|
||||
"* c #060B1B",
|
||||
"= c #080C1A",
|
||||
"- c #160B17",
|
||||
"; c gray7",
|
||||
": c #1A1616",
|
||||
"> c #1C1B1B",
|
||||
", c #240101",
|
||||
"< c #2C0202",
|
||||
"1 c #240B0B",
|
||||
"2 c #2D0C0C",
|
||||
"3 c #330202",
|
||||
"4 c #3B0303",
|
||||
"5 c #340808",
|
||||
"6 c #240F11",
|
||||
"7 c #2C1111",
|
||||
"8 c #231D1D",
|
||||
"9 c #361313",
|
||||
"0 c #3E1515",
|
||||
"q c #3B1B1B",
|
||||
"w c #010924",
|
||||
"e c #080E21",
|
||||
"r c #0C1329",
|
||||
"t c #050F30",
|
||||
"y c #020F3B",
|
||||
"u c #071031",
|
||||
"i c #07143D",
|
||||
"p c #381521",
|
||||
"a c #242323",
|
||||
"s c #282727",
|
||||
"d c #2B2B2B",
|
||||
"f c #353434",
|
||||
"g c #393434",
|
||||
"h c #3C3C3C",
|
||||
"j c #420101",
|
||||
"k c #4D0202",
|
||||
"l c #440D0D",
|
||||
"z c #4A0B0B",
|
||||
"x c #530101",
|
||||
"c c #580000",
|
||||
"v c #550C0C",
|
||||
"b c #401010",
|
||||
"n c #4C1616",
|
||||
"m c #401B1B",
|
||||
"M c #4B1C1C",
|
||||
"N c #541515",
|
||||
"B c #5A1616",
|
||||
"V c #5A1B1B",
|
||||
"C c #670606",
|
||||
"Z c #6C0000",
|
||||
"A c #650D0D",
|
||||
"S c #6F0C0C",
|
||||
"D c #740000",
|
||||
"F c #7B0000",
|
||||
"G c #710E0E",
|
||||
"H c #7A0C0C",
|
||||
"J c #651111",
|
||||
"K c #611C1C",
|
||||
"L c #6A1B1B",
|
||||
"P c #701616",
|
||||
"I c #7C1111",
|
||||
"U c #731C1C",
|
||||
"Y c #7D1E1E",
|
||||
"T c #492626",
|
||||
"R c #542121",
|
||||
"E c #5E2323",
|
||||
"W c #582C2C",
|
||||
"Q c #4B3E3E",
|
||||
"! c #5B3C3C",
|
||||
"~ c #6C2323",
|
||||
"^ c #652828",
|
||||
"/ c #6C2D2D",
|
||||
"( c #742424",
|
||||
") c #7F2727",
|
||||
"_ c #7B2328",
|
||||
"` c #702A2A",
|
||||
"' c #7D2F2F",
|
||||
"] c #673434",
|
||||
"[ c #6D3636",
|
||||
"{ c #683A3A",
|
||||
"} c #703A3A",
|
||||
"| c #783939",
|
||||
" . c #091642",
|
||||
".. c #021656",
|
||||
"X. c #03175A",
|
||||
"o. c #051A5E",
|
||||
"O. c #091D5E",
|
||||
"+. c #142046",
|
||||
"@. c #3B3F49",
|
||||
"#. c #031C6B",
|
||||
"$. c #031E75",
|
||||
"%. c #0D2262",
|
||||
"&. c #03207C",
|
||||
"*. c #0C2679",
|
||||
"=. c #403F40",
|
||||
"-. c #314177",
|
||||
";. c #3A4A7F",
|
||||
":. c #434343",
|
||||
">. c #484646",
|
||||
",. c #4C4B4B",
|
||||
"<. c #514F4F",
|
||||
"1. c #5B4F4F",
|
||||
"2. c #525252",
|
||||
"3. c gray35",
|
||||
"4. c #4A5065",
|
||||
"5. c #5C5F69",
|
||||
"6. c #636363",
|
||||
"7. c #6B6B6B",
|
||||
"8. c #717171",
|
||||
"9. c #7A7A7A",
|
||||
"0. c #830404",
|
||||
"q. c #8C0202",
|
||||
"w. c #810A0A",
|
||||
"e. c #890909",
|
||||
"r. c #930101",
|
||||
"t. c #9F0000",
|
||||
"y. c #910D0D",
|
||||
"u. c #891010",
|
||||
"i. c #841A1A",
|
||||
"p. c #8C1D1D",
|
||||
"a. c #961313",
|
||||
"s. c #931B1B",
|
||||
"d. c #A20404",
|
||||
"f. c #A60909",
|
||||
"g. c #AA0D0D",
|
||||
"h. c #A61111",
|
||||
"j. c #AD1212",
|
||||
"k. c #A41B1B",
|
||||
"l. c #AD1B1B",
|
||||
"z. c #B11616",
|
||||
"x. c #B61B1B",
|
||||
"c. c #B91E1E",
|
||||
"v. c #872222",
|
||||
"b. c #8D2525",
|
||||
"n. c #962323",
|
||||
"m. c #992626",
|
||||
"M. c #942C2C",
|
||||
"N. c #9B2B2B",
|
||||
"B. c #8D3535",
|
||||
"V. c #953434",
|
||||
"C. c #9C3636",
|
||||
"Z. c #973939",
|
||||
"A. c #A22424",
|
||||
"S. c #A22B2B",
|
||||
"D. c #AE2C2C",
|
||||
"F. c #B42424",
|
||||
"G. c #BD2323",
|
||||
"H. c #B42929",
|
||||
"J. c #BB2C2C",
|
||||
"K. c #A63636",
|
||||
"L. c #AD3434",
|
||||
"P. c #A73C3C",
|
||||
"I. c #B33131",
|
||||
"U. c #BC3232",
|
||||
"Y. c #B53D3D",
|
||||
"T. c #BB3C3C",
|
||||
"R. c #C02727",
|
||||
"E. c #C42B2B",
|
||||
"W. c #C82F2F",
|
||||
"Q. c #C43434",
|
||||
"!. c #CB3333",
|
||||
"~. c #C63B3B",
|
||||
"^. c #CE3939",
|
||||
"/. c #D33D3D",
|
||||
"(. c #BB4646",
|
||||
"). c #C24444",
|
||||
"_. c #CB4242",
|
||||
"`. c #D64141",
|
||||
"'. c #DA4545",
|
||||
"]. c #D44E4E",
|
||||
"[. c #DE4949",
|
||||
"{. c #D45151",
|
||||
"}. c #D95050",
|
||||
"|. c #E14D4D",
|
||||
" X c #E55252",
|
||||
".X c #E95656",
|
||||
"XX c #EC5959",
|
||||
"oX c #032283",
|
||||
"OX c #082584",
|
||||
"+X c #0B2C93",
|
||||
"@X c #04299D",
|
||||
"#X c #1D3A95",
|
||||
"$X c #11329B",
|
||||
"%X c #283E84",
|
||||
"&X c #223B8F",
|
||||
"*X c #052AA3",
|
||||
"=X c #082DA5",
|
||||
"-X c #052BAA",
|
||||
";X c #0D32A9",
|
||||
":X c #1437A9",
|
||||
">X c #052EB3",
|
||||
",X c #052FB8",
|
||||
"<X c #0A33B6",
|
||||
"1X c #0531BD",
|
||||
"2X c #0934BF",
|
||||
"3X c #25429C",
|
||||
"4X c #2846A8",
|
||||
"5X c #2547B1",
|
||||
"6X c #405599",
|
||||
"7X c #59699F",
|
||||
"8X c #616C8D",
|
||||
"9X c #435CAD",
|
||||
"0X c #4F62A0",
|
||||
"qX c #4F64AA",
|
||||
"wX c #5266AA",
|
||||
"eX c #6D7EB7",
|
||||
"rX c #6479BC",
|
||||
"tX c #0533C4",
|
||||
"yX c #0535CD",
|
||||
"uX c #0537D3",
|
||||
"iX c #0638D7",
|
||||
"pX c #7483B5",
|
||||
"aX c #868687",
|
||||
"sX c #8B8B8B",
|
||||
"dX c #979797",
|
||||
"fX c #9D9D9D",
|
||||
"gX c #838CAB",
|
||||
"hX c #9097AB",
|
||||
"jX c #A4A4A4",
|
||||
"kX c #A1A2A9",
|
||||
"lX c #ACACAC",
|
||||
"zX c #B4B4B4",
|
||||
"xX c #BCBCBC",
|
||||
"cX c #A4ABC3",
|
||||
"vX c #ABB0C2",
|
||||
"bX c #C3C3C3",
|
||||
"nX c #CBCBCB",
|
||||
"mX c #D4D4D4",
|
||||
"MX c #DADADA",
|
||||
"NX c #E3E3E3",
|
||||
"BX c #EAEAEA",
|
||||
"VX c #EAECF1",
|
||||
"CX c gray94",
|
||||
"ZX c #FBFBFB",
|
||||
"AX c None",
|
||||
/* pixels */
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAX AXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAX. XXXXXXX.X.X X X X|.|.|.[.[.[.'.'.`.# AXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAX AXAX. ` XX.X.X.X X X X|.|.|.[.[.'.'.'.'.) . AXAX AXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAX. . AXAX. ]..X X X X|.|.|.[.[.[.'.'.'.`./.O AXAX. . AXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAX. {.# AXAX. E X X X|.|.|.[.[.'.'.'.'.`.`.( . AXAX# I.. AXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAX. B.XXZ.. AXAX ).|.|.|.[.[.[.'.'.'.`.`./.^.. AXAX. b.!.L . AXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAX 7 .X.X.X1 AXAX. M |.|.[.[.'.'.'.`.`.`././.~ . AX 2 !.!.Q.# AXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAX (..X.X XP. AXAX Y.[.[.'.'.'.`.`./././.~.. AXAX N.!.!.!.n. AXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAX. E .X.X X X X9 AX 0 '.'.'.`.`.`././././.L . AX. b !.!.W.W.E.l . AXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXo }. X X X|.|.Y. AXAX K.'.`.`./././././.Q.. AXAX D.W.W.E.E.E.F.. AXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAX. V. X X X|.|.|.[.M . AX 2 `.`./././././.^.K . AX. N W.W.E.E.R.R.R.P . AXAXAXAXAXAX",
|
||||
"AXAXAXAXAX. 9 X X|.|.|.[.[.[.T. AXAX. M././././.^.^.U. AXAX. H.E.E.E.R.R.G.G.G.1 AXAXAXAXAX",
|
||||
"AXAXAXAXAX ). X|.|.|.[.[.'.'.'.V . AX X o o - p _ J.B . AX. L E.E.R.R.R.G.G.G.G.s. AXAXAXAXAX",
|
||||
"AXAXAXAX. ~ |.|.|.[.[.[.'.'.~.( 6 . . X * * * = % o o & = . . J.E.R.R.G.G.G.G.G.c.c.z . AXAXAXAX",
|
||||
"AXAXAXAX# [.|.|.[.[.'.'.L.M o o e .O.t X X i .r & ; : K A.R.G.G.G.G.c.c.x.x.l.. AXAXAXAX",
|
||||
"AXAXAX. C.|.[.[.[.'.K.m o > @.%.*.+Xu . O.*.%.+.=.> : q Y F.G.c.c.x.x.x.z.G AXAXAX",
|
||||
"AXAX. 0 |.[.[.'.T.M ; a 7.zX0X=XtX&. X -X*XOXhXjX7.f > 8 K k.x.x.z.z.z.j., AXAX",
|
||||
"AXAX ).[.[._.^ : a 7.bXNXZX:X1XyXw #.>X@XeXBXMXbXsX2.s a R s.z.z.j.j.y. AXAX",
|
||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.j.4 AX. C f.d.d.d.d.t.t.t.t.q. AXAXAXAXAX",
|
||||
"AXAXAXAXAX. l R.R.G.G.G.G.G.c.l.. AXAX. A z.j.j.j.g.g.y. AXAX. t.d.d.t.t.t.t.t.t.3 AXAXAXAXAX",
|
||||
"AXAXAXAXAXAX s.G.G.G.G.G.c.c.v . AXAXO j.j.j.j.g.g.g.f.4 AX. x d.t.t.t.t.t.t.D AXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAX+ G.G.G.c.c.x.k. AXAX. S j.j.g.g.g.g.f.f.r. AXAX r.t.t.t.t.t.t.O AXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAX. J c.c.c.x.x.l . AXAX+ j.j.g.g.g.f.f.f.d.d.j AX. j t.t.t.t.t.x AXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAX k.x.x.x.a. AXAX H g.g.g.g.f.f.d.d.d.d.q. AXAX q.t.t.t.q. AXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAX. 5 x.x.z.5 AX , g.g.g.f.f.f.d.d.d.d.t.t.j . AX 3 t.t.t.< AXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAX I z.u. AXAX w.g.g.f.f.d.d.d.d.t.t.t.t.r. AXAX F t.Z AXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXO j., AX < g.f.f.f.d.d.d.d.t.t.t.t.t.t.k . AX , r.. AXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAX. + AXAX e.f.f.d.d.d.d.t.t.t.t.t.t.t.t.r. AXAX O AXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAX AXAX 4 f.f.d.d.d.d.t.t.t.t.t.t.t.t.t.t.k . AXAX AXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAX e.d.d.d.d.t.t.t.t.t.t.t.t.t.t.t.t.r.. AXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAX , , , , , , , , , , , , , , , , , , AXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAX",
|
||||
"AXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAX"
|
||||
};
|
|
@ -287,7 +287,7 @@ cd ${srcdir}/aegisub/bitmaps
|
|||
make -f Makefile.bitmaps
|
||||
cd ${srcdir}
|
||||
|
||||
$BIN_AWK '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST= \\\n wxicon_xpm.xpm"); for (v in image) printf(" \\\n %s_xpm.xpm", image[v])}' \
|
||||
$BIN_AWK '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST="); for (v in image) printf(" \\\n %s_xpm.xpm", image[v])}' \
|
||||
${srcdir}/aegisub/res.rc \
|
||||
> ${srcdir}/aegisub/bitmaps/Makefile.am
|
||||
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
# $Id$
|
||||
|
||||
! /CURSOR|^#|^$|^\// {
|
||||
! /CURSOR|ICON|^#|^$|^\// {
|
||||
image[$1] = $1
|
||||
}
|
||||
|
||||
END {
|
||||
print("#define static") > RESRC_CPP
|
||||
printf("#include \"wxicon_xpm.xpm\"\n") >> RESRC_CPP
|
||||
for (v in image) {
|
||||
printf("#include \"../bitmaps/%s_xpm.xpm\"\n", image[v]) >> RESRC_CPP
|
||||
}
|
||||
|
||||
print("#ifndef _RES_H") > RESRC_H
|
||||
print("#define _RES_H") >> RESRC_H
|
||||
printf("extern char *wxicon_xpm[];\n") >> RESRC_H
|
||||
for (v in image) {
|
||||
printf("extern char *%s_xpm[];\n", image[v]) >> RESRC_H
|
||||
}
|
||||
|
|
|
@ -6,13 +6,11 @@
|
|||
|
||||
END {
|
||||
printf(" \
|
||||
all: bmp2xpm wxicon_xpm.xpm \n \
|
||||
all: bmp2xpm \n \
|
||||
.PHONY: all bmp2xpm \n \
|
||||
CONVERT ?= %s \n \
|
||||
", BIN_CONVERT)
|
||||
|
||||
printf("wxicon_xpm.xpm: icon.ico\n $(CONVERT) 'icon.ico[2]' wxicon_xpm.xpm\n");
|
||||
|
||||
for (v in image) {
|
||||
printf("%s_xpm.xpm: %s\n", v, image[v])
|
||||
printf(" $(CONVERT) -transparent \"#c0c0c0\" %s %s_xpm.xpm\n\n", image[v], v)
|
||||
|
|
Loading…
Reference in a new issue