null.cpp

Go to the documentation of this file.
00001 /* $Id: null.cpp 11704 2007-12-26 23:04:26Z rubidium $ */
00002 
00005 #include "../stdafx.h"
00006 #include "null.hpp"
00007 
00008 static FBlitter_Null iFBlitter_Null;
00009 
00010 Sprite *Blitter_Null::Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator)
00011 {
00012   Sprite *dest_sprite;
00013   dest_sprite = (Sprite *)allocator(sizeof(*dest_sprite));
00014 
00015   dest_sprite->height = sprite->height;
00016   dest_sprite->width  = sprite->width;
00017   dest_sprite->x_offs = sprite->x_offs;
00018   dest_sprite->y_offs = sprite->y_offs;
00019 
00020   return dest_sprite;
00021 }

Generated on Tue Dec 1 00:06:14 2009 for OpenTTD by  doxygen 1.5.6