1
0
Fork 0

Use dosbox-staging splash screen

Users who test dosbox-staging via various GUI frontends might have a
problem distinguishing if the instance they have configured is really
dosbox-staging or some other version of DOSBox. Different splash screen
is a simple remedy for it.

Two graphical files are included: one in vector format to allow for
further refinements and one converted to necessary size in png format,
that is used as direct source of logo embedded in the source code. Use
GIMP to convert the png logo to a C file.

Notes about new design:

Orange background was replaced by black to make switch to black
background of empty terminal a little less jarring.

The box side is covered with the rainbow-like pattern to resemble logos
of various computer platforms popular in the 80s.  AFAIK IBM or
PC-clones never had such colourful logos, but the point is to resemble
a retro-computing platform while being aesthetically pleasing.

Some computing platforms, that used rainbow patterns are Sinclair,
Commodore, Amiga, Dragon 32, and Apple.  The pattern used for
dosbox-staging splash is deliberately different from all of these.

Word "staging" is rendered using excellent Raleway font:
https://www.theleagueofmoveabletype.com/raleway

This change is not supposed to be upstreamed.
This commit is contained in:
Patryk Obara 2020-01-16 03:54:15 +01:00 committed by Patryk Obara
parent 9df802fd56
commit 1f1e832a6c
4 changed files with 1895 additions and 2 deletions

View file

@ -0,0 +1,260 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1000"
height="1000"
viewBox="0 0 264.58333 264.58334"
version="1.1"
id="svg890"
inkscape:version="0.92.4 (unknown)"
sodipodi:docname="dosbox_staging_splash.svg"
inkscape:export-filename="/home/dreamer_/src/luxtorpeda/dosbox-staging/src/dosbox_splash.svg.png"
inkscape:export-xdpi="37.150002"
inkscape:export-ydpi="37.150002">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1016"
id="namedview19"
showgrid="true"
inkscape:zoom="0.70710678"
inkscape:cx="407.9159"
inkscape:cy="486.27661"
inkscape:window-x="1920"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
showguides="false">
<inkscape:grid
type="xygrid"
id="grid842" />
</sodipodi:namedview>
<title
id="title824">DOSBox splash screen</title>
<defs
id="defs884">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="74.634086 : 251.31198 : 1"
inkscape:vp_y="0 : 269.1924 : 0"
inkscape:vp_z="118.02917 : 250.78694 : 1"
inkscape:persp3d-origin="115.59379 : 203.75983 : 1"
id="perspective4588" />
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="-77.207544 : 149.10847 : 1"
inkscape:vp_y="0 : 3600.4911 : 0"
inkscape:vp_z="491.65719 : 141.95514 : 1"
inkscape:persp3d-origin="470.65344 : -486.90917 : 1"
id="perspective4588-6" />
</defs>
<metadata
id="metadata887">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>DOSBox splash screen</dc:title>
<dc:contributor>
<cc:Agent>
<dc:title>Patryk Obara &lt;patryk.obara@gmail.com&gt;</dc:title>
</cc:Agent>
</dc:contributor>
<dc:creator>
<cc:Agent>
<dc:title>GOG Team</dc:title>
</cc:Agent>
</dc:creator>
<dc:description>Original splash screen contributed by GOG was dumped in SVN in raster format by DOSBox maintainers. Patryk Obara recreated the logo in vector format for dosbox-staging project.</dc:description>
<cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
</cc:Work>
<cc:License
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Notice" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Attribution" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<g
inkscape:label="Background"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-32.41665)"
style="display:inline">
<rect
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;paint-order:fill markers stroke;stroke-opacity:1;stroke-width:1.00012501;stroke-miterlimit:4;stroke-dasharray:none"
id="rect5227"
width="264.58334"
height="264.58334"
x="0"
y="32.416653" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Box"
style="display:inline"
sodipodi:insensitive="true">
<g
sodipodi:type="inkscape:box3d"
id="g4632"
style="display:inline;fill:#1f1f1f;fill-opacity:1;stroke:none"
inkscape:perspectiveID="#perspective4588-6"
inkscape:corner0="2.6212412 : 0.22433035 : 0 : 1"
inkscape:corner7="2.0232549 : 0.11324788 : 0.87579633 : 1"
inkscape:export-xdpi="37.150002"
inkscape:export-ydpi="37.150002">
<path
sodipodi:type="inkscape:box3dside"
id="path4634"
style="fill:#1f1f1f;fill-opacity:0.1;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="6"
d="M 74.083397,68.065216 V 178.51117 L 155.40573,167.62798 V 78.691335 Z"
points="74.083397,178.51117 155.40573,167.62798 155.40573,78.691335 74.083397,68.065216 " />
<path
sodipodi:type="inkscape:box3dside"
id="path4642"
style="fill:#1f1f1f;fill-opacity:0.1;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="13"
d="m 74.083397,178.51117 29.924673,12.4683 87.0729,-15.35291 -35.67524,-7.99858 z"
points="104.00807,190.97947 191.08097,175.62656 155.40573,167.62798 74.083397,178.51117 " />
<path
sodipodi:type="inkscape:box3dside"
id="path4644"
style="fill:#1f1f1f;fill-opacity:0.1;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="11"
d="m 155.40573,78.691335 35.67524,-5.641384 V 175.62656 l -35.67524,-7.99858 z"
points="191.08097,73.049951 191.08097,175.62656 155.40573,167.62798 155.40573,78.691335 " />
<path
sodipodi:type="inkscape:box3dside"
id="path4636"
style="fill:#1f1f1f;fill-opacity:0.1;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="5"
d="m 74.083397,68.065216 29.924673,-9.377417 87.0729,14.362152 -35.67524,5.641384 z"
points="104.00807,58.687799 191.08097,73.049951 155.40573,78.691335 74.083397,68.065216 " />
<path
sodipodi:type="inkscape:box3dside"
id="path4640"
style="fill:#f2f2f2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="14"
d="M 104.00807,58.687799 V 190.97947 l 87.0729,-15.35291 V 73.049951 Z"
points="104.00807,190.97947 191.08097,175.62656 191.08097,73.049951 104.00807,58.687799 "
inkscape:export-xdpi="37.150002"
inkscape:export-ydpi="37.150002" />
<path
sodipodi:type="inkscape:box3dside"
id="path4638"
style="fill:#f2f2f2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="3"
d="M 74.083397,68.065216 104.00807,58.687799 V 190.97947 l -29.924673,-12.4683 z"
points="104.00807,58.687799 104.00807,190.97947 74.083397,178.51117 74.083397,68.065216 " />
</g>
<path
style="display:inline;opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99870944"
d="M 119.23521,113.44059 V 75.950955 c 4.56224,-0.0932 7.72674,0.413704 9.73697,2.140358 2.37485,2.03983 3.17124,5.689899 3.12158,10.737691 -0.0497,5.046178 0.0258,10.476986 0.0496,14.870316 0.029,5.36173 0.14386,9.42883 -5.97669,9.70668 -2.49368,0.0959 -4.49427,0.0465 -6.9315,0.0346 z m 8.93511,7.51204 c 1.32605,-0.12555 2.68068,-0.30575 3.46798,-0.75954 4.35934,-2.51269 7.00337,-5.36392 7.00337,-16.47642 V 91.281251 c 0,-3.423683 0.15128,-6.823461 -0.53728,-10.178974 -0.3452,-1.682258 -0.42435,-2.238449 -1.71381,-4.855605 -1.71766,-3.486255 -5.81773,-7.45563 -10.85368,-8.27101 -5.05973,-0.81923 -9.6594,-1.88568 -14.14728,-2.359001 v 55.525499 c 5.29163,0.037 11.22499,0.33651 16.7807,-0.18953 z m 58.87298,-7.97716 c 0.14644,-0.66163 0.5797,-5.43073 -0.22105,-7.96763 -0.8905,-2.82123 -1.85445,-5.049046 -3.76243,-7.08844 -2.03028,-2.170125 -4.65072,-4.025507 -6.86415,-5.676449 -1.91229,-1.426326 -3.90713,-3.149013 -3.78032,-5.7242 0.11673,-2.370484 1.65538,-3.42102 3.79715,-3.571875 1.89117,-0.133204 4.05883,1.18064 6.04408,2.339285 0,0 1.37235,-4.396856 2.09773,-6.315528 0,0 -1.23395,-0.892611 -1.90996,-1.235137 -1.85567,-0.940244 -3.93091,-1.878464 -5.85443,-2.039591 -1.28691,-0.1078 -3.70698,0.0043 -5.40311,1.143637 -2.09925,1.410145 -3.10961,2.888064 -3.51021,3.586453 -0.94282,1.643672 -1.21869,3.789132 -1.29398,5.155268 -0.13959,2.533076 0.65718,5.227344 1.4842,6.910263 0.90764,1.846983 1.85157,2.791453 2.35774,3.321375 2.52303,2.641448 6.4055,4.262629 8.5313,6.613219 1.07091,1.18416 2.70822,3.19844 2.89341,4.78828 0.45501,3.90631 -0.53506,8.16938 -4.64302,8.06456 -4.6527,-0.11872 -5.43266,-3.73957 -5.95266,-6.41198 -2.11108,0.2357 -3.83594,0.35251 -5.65937,0.62219 0.075,1.2648 0.11684,2.68876 0.40854,3.79131 0.72968,2.75799 2.24953,5.11567 4.46953,6.56773 2.25669,1.47606 3.91463,2.35109 6.57759,2.35857 5.71262,0.0161 9.11462,-4.35708 10.19342,-9.23131 z m -39.56455,-5.81922 V 85.989584 c 0,-3.96875 2.00583,-6.328586 5.45042,-5.953125 3.43958,0.374915 5.55625,3.307292 5.55625,7.276042 v 21.166669 c 0,3.30093 -2.23684,6.00524 -5.55625,5.82083 -4.7625,-0.26458 -5.45042,-3.70417 -5.45042,-7.14375 z m 16.8275,1.75716 V 88.635417 c 0,-7.235917 -2.58837,-15.60705 -11.37708,-16.867187 -9.21248,-1.320897 -11.77396,6.283854 -11.77396,12.898437 v 21.166663 c 0,10.37167 3.50053,15.69483 11.77396,16.13959 7.14375,0.38403 11.37708,-6.11752 11.37708,-13.05951 z m -0.85051,65.95242 2.58014,-0.41475 c 0,0 6.56259,-14.16509 9.92871,-21.08797 0.80468,1.62116 8.2479,17.83302 8.2479,17.83302 l 2.36373,-0.55732 c 0,0 -9.00228,-19.3022 -9.40459,-20.11276 3.26778,-7.07754 9.65605,-21.27803 9.65605,-21.27803 l -2.21285,-0.20259 c 0,0 -8.44906,18.44093 -8.65024,18.84624 -0.20119,-0.40531 -8.44905,-18.44097 -8.44905,-18.44097 l -2.21284,3e-5 c 0,0 9.05254,20.26479 9.4549,21.07539 -3.75113,8.11973 -7.38735,16.29739 -11.30186,24.33971 z m -20.05157,-7.38458 c -0.0269,-0.63832 0,-22.75417 0,-23.28333 0,-3.96875 0.66655,-8.02048 3.52105,-10.4517 1.86778,-1.39446 3.8469,-2.2317 6.00365,-2.15765 5.67356,0.19478 8.20238,4.67185 8.20238,11.28643 v 18.23656 c 0,6.36969 -0.42574,7.11776 -2.3492,9.73474 -0.99411,1.23645 -2.37392,2.21601 -3.50736,2.77699 -1.13655,0.55765 -1.66179,0.67293 -2.84122,0.79621 -1.17944,0.1233 -2.00904,0.24267 -3.90502,-0.34604 -3.21708,-0.99892 -4.9736,-3.02201 -5.12428,-6.59221 z m 14.56974,7.50551 c 4.09057,-3.22173 5.53859,-8.2865 5.53859,-12.79718 v -19.84375 c 0,-5.29838 -0.69388,-8.57077 -4.79267,-11.80022 -1.78416,-1.30747 -3.55022,-1.79882 -5.78859,-1.76384 -4.49999,0.0703 -6.93653,1.54693 -8.86962,3.85804 -2.53191,3.12124 -3.0387,7.71078 -3.0387,11.55811 v 23.54791 c 0,3.96875 2.78474,8.74509 7.99225,9.4877 3.29658,0.30072 6.44036,-0.31035 8.95874,-2.24677 z m -38.7387,-23.24493 V 138.7724 c 5.4598,-0.1519 10.14604,-0.36225 10.14604,5.6901 0,6.08542 -4.59888,7.30814 -10.14604,7.27933 z m 6e-5,7.80192 7.56629,-0.038 c 1.66802,-0.008 3.35652,1.19845 4.05976,2.38984 0.34574,0.58573 0.66417,1.87774 0.72437,3.70222 0.0468,1.4174 0.0178,2.57073 -0.32324,3.79238 -0.66261,2.37389 -2.85473,3.61763 -5.02694,4.30516 -2.14189,0.67793 -5.32093,1.19421 -7.00024,1.35106 -2e-5,-5.0434 2e-5,-10.83105 0,-15.50268 z m 8.6087,21.21378 c 2.83484,-0.70164 5.62492,-2.41123 7.42542,-4.33898 1.50778,-1.61435 2.47873,-3.72629 3.10034,-5.64806 0.64065,-1.98063 0.8011,-3.81841 0.8011,-5.93507 0,-1.1456 -0.13337,-3.15323 -0.45427,-4.72319 -0.74489,-3.64426 -2.58833,-5.58344 -5.36656,-7.18306 0.21385,-0.37487 1.53079,-1.69671 2.65491,-4.52002 1.12411,-2.82335 1.04926,-4.43431 1.04926,-5.79873 0,-3.60783 -0.78645,-7.23793 -3.55616,-9.24317 -2.05275,-1.48617 -3.32663,-2.32365 -7.10604,-2.67091 -3.77938,-0.34725 -9.39077,-0.0859 -15.00239,-0.0285 v 52.6884 c 5.65997,-0.83356 11.50687,-1.37417 16.45439,-2.59871 z"
id="path850"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccssscccsssssssccsssssssccssssssssssccsssssssssssssssssscccccccccccccsscssscccsscsscscssccccsccssssscccssscscssssscs"
inkscape:export-xdpi="37.150002"
inkscape:export-ydpi="37.150002" />
<g
aria-label="STAGING"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.72817993px;line-height:1.25;font-family:Raleway;-inkscape-font-specification:Raleway;letter-spacing:0px;word-spacing:0px;fill:#f2f2f2;fill-opacity:1;stroke:none;stroke-width:1.0682044"
id="text843"
transform="matrix(0.78566701,0,0,0.78566701,26.9989,39.027336)">
<path
d="m 46.608996,235.4553 c 2.56369,2.56369 6.281042,4.7001 11.280239,4.7001 4.785556,0 11.194783,-2.05095 11.194783,-8.0329 0,-6.19559 -5.939217,-7.77653 -11.408424,-7.77653 -4.7001,0 -9.784753,-1.32457 -9.784753,-7.1356 0.128185,-5.17011 4.913741,-6.9647 9.656569,-6.9647 3.161885,0 6.708324,0.81184 8.631092,3.71735 l 0.811835,-0.34182 c -1.922768,-2.73461 -4.44373,-4.23009 -9.442927,-4.23009 -4.785556,0 -10.511133,1.96549 -10.511133,7.81926 0,6.15285 5.127382,7.99017 10.639317,7.99017 4.529187,0 10.553861,1.11093 10.553861,6.92196 0,5.25557 -5.682848,7.17833 -10.34022,7.17833 -3.888264,0 -7.861985,-1.53821 -10.639317,-4.401 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path845"
inkscape:connector-curvature="0" />
<path
d="M 95.192938,209.60475 H 71.094245 v 0.85456 H 82.71631 v 29.48245 h 0.854563 v -29.48245 h 11.622065 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path847"
inkscape:connector-curvature="0" />
<path
d="m 97.383423,239.94176 4.742827,-10.85296 h 15.85216 l 4.74282,10.85296 h 0.94002 l -13.203,-30.33701 h -0.76911 l -13.245737,30.33701 z m 20.210427,-11.70752 h -15.12577 l 7.60561,-17.39037 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path849"
inkscape:connector-curvature="0" />
<path
d="m 144.12672,225.49963 v 0.85457 h 7.13561 v 6.58014 c -1.11094,3.88826 -7.00743,6.36649 -10.93842,6.36649 -7.47743,0 -13.45938,-6.92196 -13.45938,-14.52758 0,-7.1356 4.95647,-14.52758 12.94664,-14.52758 4.7001,0 8.46018,1.75186 10.7675,6.02468 l 0.81184,-0.25637 c -1.92277,-3.84554 -5.29829,-6.62287 -11.57934,-6.62287 -8.07562,0 -13.8012,7.47743 -13.8012,15.38214 0,7.47743 5.89649,15.38215 14.31394,15.38215 4.14463,0 8.0329,-1.9655 10.93842,-5.38375 v 5.17011 h 0.85456 v -14.44213 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path851"
inkscape:connector-curvature="0" />
<path
d="m 158.81253,239.94176 v -30.29428 h -0.85456 v 30.29428 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path853"
inkscape:connector-curvature="0" />
<path
d="m 188.51729,239.94176 h 0.98275 v -30.29428 h -0.85457 v 29.05516 l -23.2014,-29.09789 h -0.64092 v 30.33701 h 0.85456 v -28.67061 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path855"
inkscape:connector-curvature="0" />
<path
d="m 213.05928,225.49963 v 0.85457 h 7.13561 v 6.58014 c -1.11093,3.88826 -7.00742,6.36649 -10.93841,6.36649 -7.47744,0 -13.45938,-6.92196 -13.45938,-14.52758 0,-7.1356 4.95647,-14.52758 12.94664,-14.52758 4.7001,0 8.46018,1.75186 10.7675,6.02468 l 0.81183,-0.25637 c -1.92276,-3.84554 -5.29829,-6.62287 -11.57933,-6.62287 -8.07563,0 -13.80121,7.47743 -13.80121,15.38214 0,7.47743 5.89649,15.38215 14.31395,15.38215 4.14463,0 8.03289,-1.9655 10.93841,-5.38375 v 5.17011 h 0.85456 v -14.44213 z"
style="fill:#f2f2f2;fill-opacity:1;stroke-width:1.0682044"
id="path857"
inkscape:connector-curvature="0" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Rainbow"
sodipodi:insensitive="true">
<path
style="fill:#009dff;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 74.083397,68.065216 29.924673,-9.377417 -0.0268,36.826785 -29.897916,3.26595 z"
id="path833"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#00ff04;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 74.083354,98.780534 -2e-5,24.839046 29.886466,1.44994 0.0115,-29.554936 z"
id="path835"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#fffa00;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 74.083334,123.61958 v 27.4575 l 29.927956,7.28856 -0.0415,-33.29612 z"
id="path837"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ff0035;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 74.083334,178.59375 v -27.51667 l 29.927956,7.28856 -0.003,32.61383 z"
id="path839"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

File diff suppressed because it is too large Load diff

View file

@ -1179,7 +1179,8 @@ static void OutputString(Bitu x,Bitu y,const char * text,Bit32u color,Bit32u col
}
}
#include "dosbox_splash.h"
// #include "dosbox_splash.h"
#include "dosbox_staging_splash.c"
//extern void UI_Run(bool);
void Restart(bool pressed);
@ -1420,7 +1421,7 @@ static void GUI_StartUp(Section * sec) {
bool exit_splash = false;
static Bitu max_splash_loop = 600;
static Bitu max_splash_loop = 1000;
static Bitu splash_fade = 100;
static bool use_fadeout = true;