another enhancement of \screenshot -- filenames should now not include the display size extension anymore. Old behaviour still supported. Minor code policing.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9432 a1c6a512-1295-4272-9138-f99709370657
diff --git a/manual/preamble.tex b/manual/preamble.tex
index d26e732..01e3186 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -92,9 +92,15 @@
 \newcommand{\screenshot}[3]{
   \begin{figure}[!ht]
     \begin{center}
-      \IfFileExists{#1}{\includegraphics[width=4cm]{#1}}{%
-        \typeout{Missing image: #1}%
-        \color{red}{\textbf{WARNING!} Image not found}}%
+      \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}%
+          }
+        }
       \if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%
         \caption{#2}}\fi
     \end{center}