Debian Codegraph @

src/effect/EffectNone.cpp

raw
1 /*
2 * Copyright (C) 2004 Ivo Danihelka ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9 #include "EffectNone.h"
10
11 const char *EffectNone::NAME = "none";
12 //-----------------------------------------------------------------
13 /**
14 * Blit without special effect.
15 */
16 void
17 EffectNone::blit(SDL_Surface *screen, SDL_Surface *surface, int x, int y)
18 {
19 SDL_Rect rect;
20 rect.x = x;
21 rect.y = y;
22 SDL_BlitSurface(surface, NULL, screen, &rect);
23 }
24