src/blitter/32bpp_simple.hpp
changeset 7433 8e410e7ec0d7
parent 7385 dc6e404283bc
child 7485 68e3df6c477e
--- a/src/blitter/32bpp_simple.hpp	Sun Jun 17 20:14:38 2007 +0000
+++ b/src/blitter/32bpp_simple.hpp	Sun Jun 17 20:30:28 2007 +0000
@@ -5,27 +5,20 @@
 #ifndef BLITTER_32BPP_SIMPLE_HPP
 #define BLITTER_32BPP_SIMPLE_HPP
 
-#include "blitter.hpp"
-
-class Blitter_32bppSimple : public Blitter {
-public:
-	/* virtual */ uint8 GetScreenDepth() { return 32; }
+#include "32bpp_base.hpp"
+#include "factory.hpp"
 
+class Blitter_32bppSimple : public Blitter_32bppBase {
+public:
 	/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
-
 	/* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal);
-
 	/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
-
-	/* virtual */ const char *GetRenderer() { return "32bpp"; }
 };
 
 class FBlitter_32bppSimple: public BlitterFactory<FBlitter_32bppSimple> {
 public:
 	/* virtual */ const char *GetName() { return "32bpp-simple"; }
-
 	/* virtual */ const char *GetDescription() { return "32bpp Simple Blitter (no palette animation)"; }
-
 	/* virtual */ Blitter *CreateInstance() { return new Blitter_32bppSimple(); }
 };