equal
deleted
inserted
replaced
|
1 #include "../stdafx.h" |
|
2 #include "../zoom.hpp" |
|
3 #include "../gfx.h" |
|
4 #include "../functions.h" |
|
5 #include "null.hpp" |
|
6 |
|
7 static FBlitter_Null iFBlitter_Null; |
|
8 |
|
9 void Blitter_Null::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) |
|
10 { |
|
11 } |
|
12 |
|
13 Sprite *Blitter_Null::Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator) |
|
14 { |
|
15 Sprite *dest_sprite; |
|
16 dest_sprite = (Sprite *)allocator(sizeof(*dest_sprite)); |
|
17 |
|
18 dest_sprite->height = sprite->height; |
|
19 dest_sprite->width = sprite->width; |
|
20 dest_sprite->x_offs = sprite->x_offs; |
|
21 dest_sprite->y_offs = sprite->y_offs; |
|
22 |
|
23 return dest_sprite; |
|
24 } |