From 2cf5abb971546df4ebaa2f132688eca44d520959 Mon Sep 17 00:00:00 2001
From: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Date: Sun, 2 Apr 2006 17:29:44 +0000
Subject: 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
---
 manual/preamble.tex | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'manual/preamble.tex')

diff --git a/manual/preamble.tex b/manual/preamble.tex
index d26e732a3c..01e31860b5 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}
-- 
cgit v1.2.3

