Enable gui renderer for all bit depths we support currently.

svn-id: r34865
This commit is contained in:
Johannes Schickel 2008-10-29 20:02:56 +00:00
parent 98b0c4b33c
commit ebcb486191
2 changed files with 45 additions and 9 deletions

View file

@ -34,6 +34,12 @@
#include "gui/ThemeEngine.h"
// To assure we have VECTOR_RENDERER_FORMAT specified when
// DISABLE_FANCY_THEMES is defined, we error out elsewise
#if defined(DISABLE_FANCY_THEMES) && !defined(VECTOR_RENDERER_FORMAT)
#error "You need to specify a fixed overlay format via VECTOR_RENDERER_FORMAT"
#endif
namespace Graphics {
class VectorRenderer;
@ -84,6 +90,14 @@ VectorRenderer *createRenderer(int mode);
* the actual rendering functionality for each Byte Depth / Byte Format
* combination, and may also contain platform specific code.
*
* When specifing define DISABLE_FANCY_THEMES some eye candy related code
* gets stripped of. This is especially useful for small devices like NDS.
* Also note that if you specify DISABLE_FANCY_THEMES, you'll need to
* specify a forced overlay bit format via VECTOR_RENDERER_FORMAT define.
* The value looks like 'XYZ' for RXGYBZ mode, so R5G5B5 would be specified
* via:
* #define VECTOR_RENDERER_FORMAT 565
*
* TODO: Expand documentation.
*
* @see VectorRendererSpec