Files
@ r10890:d53fc8ed7a65
Branch filter:
Location: cpp/openttd-patchpack/source/src/blitter/null.cpp - annotation
r10890:d53fc8ed7a65
502 B
text/x-c
(svn r15225) -Fix (r15126): searching for 'missing' NewGRFs gave the 'compatability loaded' NewGRF instead of the one that we're actually looking for
r8142:8414f11ec81b r8142:8414f11ec81b r8142:8414f11ec81b r8142:8414f11ec81b r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f | /* $Id$ */
/** @file null.cpp A blitter that doesn't blit. */
#include "../stdafx.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;
}
|