Adjust screenshot macro for use of device specific images. This makes it possible to share resolution dependent images (like plugins) and also put in device specific one. Solves the recorder vs. ondio problem as mentioned in FS#5458.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10042 a1c6a512-1295-4272-9138-f99709370657
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 595b17e..100fac1 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -110,13 +110,17 @@
\newcommand{\screenshot}[3]{
\begin{figure}[H]
\begin{center}
- \IfFileExists{#1-\genericimg.png}
- {\includegraphics[width=4cm]{#1-\genericimg.png}}
- {\IfFileExists{#1}
- {\includegraphics[width=4cm]{#1}
- \typeout{Warning: deprecated plain image name used}}%
- {\typeout{Missing image: #1 (\genericimg)}%
- \color{red}{\textbf{WARNING!} Image not found}%
+ \IfFileExists{#1-\genericimg-\specimg.png}
+ {\includegraphics[width=4cm]{#1-\genericimg-\specimg.png}
+ \typeout{Note: device specific image used}}
+ {\IfFileExists{#1-\genericimg.png}
+ {\includegraphics[width=4cm]{#1-\genericimg.png}}
+ {\IfFileExists{#1}
+ {\includegraphics[width=4cm]{#1}
+ \typeout{Warning: deprecated plain image name used}}%
+ {\typeout{Missing image: #1 (\genericimg) (\specimg)}%
+ \color{red}{\textbf{WARNING!} Image not found}%
+ }
}
}
\if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%