src/blitter/null.cpp
author rubidium
Sat, 15 Dec 2007 22:05:02 +0000
changeset 8575 dfc40de58c04
parent 7433 8e410e7ec0d7
child 8638 d997e3a75b36
permissions -rw-r--r--
(svn r11640) -Fix: missed change of include when moving stuff to random_func.cpp
#include "../stdafx.h"
#include "../variables.h"
#include "null.hpp"

static FBlitter_Null iFBlitter_Null;

Sprite *Blitter_Null::Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator)
{
	Sprite *dest_sprite;
	dest_sprite = (Sprite *)allocator(sizeof(*dest_sprite));

	dest_sprite->height = sprite->height;
	dest_sprite->width  = sprite->width;
	dest_sprite->x_offs = sprite->x_offs;
	dest_sprite->y_offs = sprite->y_offs;

	return dest_sprite;
}